3 namespace Drupal\layout_builder;
6 * Defines events for the layout_builder module.
8 * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
11 * Layout Builder is currently experimental and should only be leveraged by
12 * experimental modules and development releases of contributed modules.
13 * See https://www.drupal.org/core/experimental for more information.
15 final class LayoutBuilderEvents {
18 * Name of the event fired when a component's render array is built.
20 * This event allows modules to collaborate on creating the render array of
21 * the SectionComponent object. The event listener method receives a
22 * \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
27 * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
28 * @see \Drupal\layout_builder\SectionComponent::toRenderArray()
32 const SECTION_COMPONENT_BUILD_RENDER_ARRAY = 'section_component.build.render_array';