You are here

constant LayoutBuilderEvents::SECTION_COMPONENT_BUILD_RENDER_ARRAY in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/LayoutBuilderEvents.php \Drupal\layout_builder\LayoutBuilderEvents::SECTION_COMPONENT_BUILD_RENDER_ARRAY
  2. 10 core/modules/layout_builder/src/LayoutBuilderEvents.php \Drupal\layout_builder\LayoutBuilderEvents::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.

See also

\Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent

\Drupal\layout_builder\SectionComponent::toRenderArray()

Related topics

File

core/modules/layout_builder/src/LayoutBuilderEvents.php, line 27

Class

LayoutBuilderEvents
Defines events for the layout_builder module.

Namespace

Drupal\layout_builder

Code

const SECTION_COMPONENT_BUILD_RENDER_ARRAY = 'section_component.build.render_array';