annotate core/modules/layout_builder/src/LayoutBuilderEvents.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children af1871eacc83
rev   line source
Chris@14 1 <?php
Chris@14 2
Chris@14 3 namespace Drupal\layout_builder;
Chris@14 4
Chris@14 5 /**
Chris@14 6 * Defines events for the layout_builder module.
Chris@14 7 *
Chris@14 8 * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
Chris@14 9 *
Chris@14 10 * @internal
Chris@14 11 * Layout Builder is currently experimental and should only be leveraged by
Chris@14 12 * experimental modules and development releases of contributed modules.
Chris@14 13 * See https://www.drupal.org/core/experimental for more information.
Chris@14 14 */
Chris@14 15 final class LayoutBuilderEvents {
Chris@14 16
Chris@14 17 /**
Chris@14 18 * Name of the event fired when a component's render array is built.
Chris@14 19 *
Chris@14 20 * This event allows modules to collaborate on creating the render array of
Chris@14 21 * the SectionComponent object. The event listener method receives a
Chris@14 22 * \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
Chris@14 23 * instance.
Chris@14 24 *
Chris@14 25 * @Event
Chris@14 26 *
Chris@14 27 * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
Chris@14 28 * @see \Drupal\layout_builder\SectionComponent::toRenderArray()
Chris@14 29 *
Chris@14 30 * @var string
Chris@14 31 */
Chris@14 32 const SECTION_COMPONENT_BUILD_RENDER_ARRAY = 'section_component.build.render_array';
Chris@14 33
Chris@14 34 }