LayoutBuilderBlockContentDependencyTestThemeHooks.php

Namespace

Drupal\layout_builder_block_content_dependency_test\Hook

File

core/modules/layout_builder/tests/modules/layout_builder_block_content_dependency_test/src/Hook/LayoutBuilderBlockContentDependencyTestThemeHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\layout_builder_block_content_dependency_test\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for layout_builder_block_content_dependency_test.
 */
class LayoutBuilderBlockContentDependencyTestThemeHooks {
  
  /**
   * Implements hook_modules_installed().
   */
  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',
      ]);
    }
  }

}

Classes

Title Deprecated Summary
LayoutBuilderBlockContentDependencyTestThemeHooks Hook implementations for layout_builder_block_content_dependency_test.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.