function navigation_plugin_filter_layout__layout_builder_alter

Same name in other branches
  1. 10 core/modules/navigation/navigation.module \navigation_plugin_filter_layout__layout_builder_alter()

Implements hook_plugin_filter_TYPE__CONSUMER_alter().

File

core/modules/navigation/navigation.module, line 188

Code

function navigation_plugin_filter_layout__layout_builder_alter(array &$definitions, array $extra) {
    if (($extra['section_storage'] ?? NULL) instanceof NavigationSectionStorage) {
        // We don't allow adding a new section.
        $definitions = [];
    }
}

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