function LayoutBuilderHooks::pluginFilterLayoutAlter
Implements hook_plugin_filter_TYPE_alter().
Attributes
#[Hook('plugin_filter_layout_alter')]
File
-
core/
modules/ layout_builder/ src/ Hook/ LayoutBuilderHooks.php, line 357
Class
- LayoutBuilderHooks
- Hook implementations for layout_builder.
Namespace
Drupal\layout_builder\HookCode
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.