function LayoutBuilderBlockContentDependencyTestThemeHooks::modulesInstalled
Implements hook_modules_installed().
Attributes
#[Hook('modules_installed')]
File
-
core/
modules/ layout_builder/ tests/ modules/ layout_builder_block_content_dependency_test/ src/ Hook/ LayoutBuilderBlockContentDependencyTestThemeHooks.php, line 17
Class
- LayoutBuilderBlockContentDependencyTestThemeHooks
- Hook implementations for layout_builder_block_content_dependency_test.
Namespace
Drupal\layout_builder_block_content_dependency_test\HookCode
public function modulesInstalled(array $modules, bool $is_syncing) : void {
// @see Drupal\Tests\layout_builder\Kernel\LayoutBuilderBlockContentDependencyTest
if (in_array('layout_builder', $modules)) {
\Drupal::service('plugin.manager.block')->getDefinitions();
\Drupal::service('module_installer')->install([
'block_content',
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.