You are here

function layout_builder_module_implements_alter in Drupal 9

Same name and namespace in other branches
  1. 8 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 188
Provides hook implementations for Layout Builder.

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