final class LayoutBuilderEvents (View source)

Defines events for the layout_builder module.

Constants

SECTION_COMPONENT_BUILD_RENDER_ARRAY

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.

PREPARE_LAYOUT

Name of the event fired in when preparing a layout builder element.

This event allows modules to collaborate on creating the sections used in \Drupal\layout_builder\Element\LayoutBuilder during #pre_render.