function navigation_element_info_alter
Same name in other branches
- 11.x core/modules/navigation/navigation.module \navigation_element_info_alter()
Implements hook_element_info_alter().
File
-
core/
modules/ navigation/ navigation.module, line 220
Code
function navigation_element_info_alter(array &$info) {
if (array_key_exists('layout_builder', $info)) {
$info['layout_builder']['#pre_render'][] = [
RenderCallbacks::class,
'alterLayoutBuilder',
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.