isSyncing()) { // Run before importing config so blocks are created with the correct // dependencies. \Drupal::classResolver(InstallHelper::class)->importContent(); } } /** * Implements hook_uninstall(). */ function demo_umami_content_uninstall($is_syncing) { if (!$is_syncing) { \Drupal::classResolver(InstallHelper::class)->deleteImportedContent(); } }