function NavigationHooks::elementInfoAlter

Implements hook_element_info_alter().

File

core/modules/navigation/src/Hook/NavigationHooks.php, line 183

Class

NavigationHooks
Hook implementations for navigation.

Namespace

Drupal\navigation\Hook

Code

public function elementInfoAlter(array &$info) : void {
    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.