final class LayoutBuilderEvents in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/src/LayoutBuilderEvents.php \Drupal\layout_builder\LayoutBuilderEvents
- 10 core/modules/layout_builder/src/LayoutBuilderEvents.php \Drupal\layout_builder\LayoutBuilderEvents
Defines events for the layout_builder module.
Hierarchy
- class \Drupal\layout_builder\LayoutBuilderEvents
Expanded class hierarchy of LayoutBuilderEvents
See also
\Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
2 files declare their use of LayoutBuilderEvents
- BlockComponentRenderArray.php in core/
modules/ layout_builder/ src/ EventSubscriber/ BlockComponentRenderArray.php - SectionComponentTest.php in core/
modules/ layout_builder/ tests/ src/ Unit/ SectionComponentTest.php
File
- core/
modules/ layout_builder/ src/ LayoutBuilderEvents.php, line 10
Namespace
Drupal\layout_builderView source
final class LayoutBuilderEvents {
/**
* Name of the event fired when a component's render array is built.
*
* This event allows modules to collaborate on creating the render array of
* the SectionComponent object. The event listener method receives a
* \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
* instance.
*
* @Event
*
* @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
* @see \Drupal\layout_builder\SectionComponent::toRenderArray()
*
* @var string
*/
const SECTION_COMPONENT_BUILD_RENDER_ARRAY = 'section_component.build.render_array';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayoutBuilderEvents:: |
constant | Name of the event fired when a component's render array is built. |