function layout_builder_plugin_filter_block__layout_builder_alter

Same name in other branches
  1. 8.9.x core/modules/layout_builder/layout_builder.module \layout_builder_plugin_filter_block__layout_builder_alter()
  2. 10 core/modules/layout_builder/layout_builder.module \layout_builder_plugin_filter_block__layout_builder_alter()
  3. 11.x core/modules/layout_builder/layout_builder.module \layout_builder_plugin_filter_block__layout_builder_alter()

Implements hook_plugin_filter_TYPE__CONSUMER_alter().

File

core/modules/layout_builder/layout_builder.module, line 228

Code

function layout_builder_plugin_filter_block__layout_builder_alter(array &$definitions, array $extra) {
    unset($definitions['system_main_block']);
    // @todo Restore the page title block in https://www.drupal.org/node/2938129.
    unset($definitions['page_title_block']);
}

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