function layout_builder_module_implements_alter
Same name in other branches
- 9 core/modules/layout_builder/layout_builder.module \layout_builder_module_implements_alter()
- 8.9.x core/modules/layout_builder/layout_builder.module \layout_builder_module_implements_alter()
- 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.