function layout_builder_test_module_implements_alter

Same name in other branches
  1. 10 core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module \layout_builder_test_module_implements_alter()
  2. 11.x 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 169

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;
    }
}

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