schemadotorg_starterkit_recipes-1.0.x-dev/modules/schemadotorg_starterkit_recipes_umami_content/schemadotorg_starterkit_recipes_umami_content.install
modules/schemadotorg_starterkit_recipes_umami_content/schemadotorg_starterkit_recipes_umami_content.install
<?php
/**
* @file
* Installation hooks for the Schema.org Blueprints Demo Umami module.
*/
declare(strict_types=1);
use Drupal\schemadotorg_starterkit_recipes_umami_content\SchemaDotOrgStarterkitRecipesUmamiContentInstallHelper;
/**
* Implements hook_install().
*
* @see demo_umami_content_module_preinstall()
*/
function schemadotorg_starterkit_recipes_umami_content_install(bool $is_syncing): void {
if ($is_syncing) {
return;
}
/** @var \Drupal\schemadotorg_starterkit_recipes_umami_content\SchemaDotOrgStarterkitRecipesUmamiContentInstallHelper $install_helper */
$install_helper = \Drupal::classResolver(SchemaDotOrgStarterkitRecipesUmamiContentInstallHelper::class);
$install_helper->importContent();
}
/**
* Implements hook_uninstall().
*/
function schemadotorg_starterkit_recipes_umami_content_uninstall(bool $is_syncing): void {
if ($is_syncing) {
return;
}
/** @var \Drupal\schemadotorg_starterkit_recipes_umami_content\SchemaDotOrgStarterkitRecipesUmamiContentInstallHelper $install_helper */
$install_helper = \Drupal::classResolver(SchemaDotOrgStarterkitRecipesUmamiContentInstallHelper::class);
$install_helper->deleteImportedContent();
}
