5 * Install, update and uninstall functions for the module.
8 use Drupal\demo_umami_content\InstallHelper;
11 * Implements hook_install().
13 function demo_umami_content_install() {
14 if (!\Drupal::service('config.installer')->isSyncing()) {
15 \Drupal::classResolver(InstallHelper::class)->importContent();
20 * Implements hook_uninstall().
22 function demo_umami_content_uninstall() {
23 if (!\Drupal::service('config.installer')->isSyncing()) {
24 \Drupal::classResolver(InstallHelper::class)->deleteImportedContent();