class BlankLayout in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php \Drupal\layout_builder\Plugin\Layout\BlankLayout
- 9 core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php \Drupal\layout_builder\Plugin\Layout\BlankLayout
Provides a layout plugin that produces no output.
@internal This layout plugin is intended for internal use by Layout Builder only.
Plugin annotation
@Layout(
id = "layout_builder_blank",
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\Core\Layout\LayoutDefault implements LayoutInterface, PluginFormInterface, PreviewAwarePluginInterface uses ContextAwarePluginAssignmentTrait, ContextAwarePluginTrait
- class \Drupal\layout_builder\Plugin\Layout\BlankLayout
- class \Drupal\Core\Layout\LayoutDefault implements LayoutInterface, PluginFormInterface, PreviewAwarePluginInterface uses ContextAwarePluginAssignmentTrait, ContextAwarePluginTrait
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of BlankLayout
See also
\Drupal\layout_builder\Field\LayoutSectionItemList::removeSection()
\Drupal\layout_builder\SectionListTrait::addBlankSection()
\Drupal\layout_builder\SectionListTrait::hasBlankSection()
File
- core/
modules/ layout_builder/ src/ Plugin/ Layout/ BlankLayout.php, line 21
Namespace
Drupal\layout_builder\Plugin\LayoutView source
class BlankLayout extends LayoutDefault {
/**
* {@inheritdoc}
*/
public function build(array $regions) {
// Return no output.
return [];
}
}