LayoutBuilderEvents.php
Same filename in other branches
Namespace
Drupal\layout_builderFile
-
core/
modules/ layout_builder/ src/ LayoutBuilderEvents.php
View source
<?php
namespace Drupal\layout_builder;
/**
* Defines events for the layout_builder module.
*
* @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
*/
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';
/**
* 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.
*
* @see \Drupal\layout_builder\Event\PrepareLayoutEvent
* @see \Drupal\layout_builder\Element\LayoutBuilder
*
* @var string
*/
const PREPARE_LAYOUT = 'prepare_layout';
}
Classes
Title | Deprecated | Summary |
---|---|---|
LayoutBuilderEvents | Defines events for the layout_builder module. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.