function LayoutBuilderHooks::pluginFilterLayoutAlter

Same name and namespace in other branches
  1. main core/modules/layout_builder/src/Hook/LayoutBuilderHooks.php \Drupal\layout_builder\Hook\LayoutBuilderHooks::pluginFilterLayoutAlter()

Implements hook_plugin_filter_TYPE_alter().

Attributes

#[Hook('plugin_filter_layout_alter')]

File

core/modules/layout_builder/src/Hook/LayoutBuilderHooks.php, line 349

Class

LayoutBuilderHooks
Hook implementations for layout_builder.

Namespace

Drupal\layout_builder\Hook

Code

public function pluginFilterLayoutAlter(array &$definitions, array $extra, $consumer) : void {
  // Hide the blank layout plugin from listings.
  unset($definitions['layout_builder_blank']);
}

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