class DemoUmamiContentHooks
Hook implementations for demo_umami_content.
Hierarchy
- class \Drupal\demo_umami_content\Hook\DemoUmamiContentHooks
Expanded class hierarchy of DemoUmamiContentHooks
File
-
core/
profiles/ demo_umami/ modules/ demo_umami_content/ src/ Hook/ DemoUmamiContentHooks.php, line 13
Namespace
Drupal\demo_umami_content\HookView source
class DemoUmamiContentHooks {
/**
* Implements hook_module_preinstall().
*/
public function modulePreinstall($module) {
if ($module === 'demo_umami_content' && !\Drupal::service('config.installer')->isSyncing()) {
// Run before importing config so blocks are created with the correct
// dependencies.
\Drupal::classResolver(InstallHelper::class)->importContent();
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
DemoUmamiContentHooks::modulePreinstall | public | function | Implements hook_module_preinstall(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.