function layout_builder_module_implements_alter

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/layout_builder.module \layout_builder_module_implements_alter()
  2. 8.9.x core/modules/layout_builder/layout_builder.module \layout_builder_module_implements_alter()
  3. 10 core/modules/layout_builder/layout_builder.module \layout_builder_module_implements_alter()

Implements hook_module_implements_alter().

File

core/modules/layout_builder/layout_builder.module, line 181

Code

function layout_builder_module_implements_alter(&$implementations, $hook) {
    if ($hook === 'entity_view_alter') {
        // Ensure that this module's implementation of hook_entity_view_alter() runs
        // last so that other modules that use this hook to render extra fields will
        // run before it.
        $group = $implementations['layout_builder'];
        unset($implementations['layout_builder']);
        $implementations['layout_builder'] = $group;
    }
}

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