You are here

function layout_builder_test_module_implements_alter in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module \layout_builder_test_module_implements_alter()

Implements hook_module_implements_alter().

File

core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module, line 124
Provides hook implementations for Layout Builder tests.

Code

function layout_builder_test_module_implements_alter(&$implementations, $hook) {
  if ($hook === 'system_breadcrumb_alter') {

    // Move our hook_system_breadcrumb_alter() implementation to run before
    // layout_builder_system_breadcrumb_alter().
    $group = $implementations['layout_builder_test'];
    $implementations = [
      'layout_builder_test' => $group,
    ] + $implementations;
  }
}