annotate core/modules/layout_builder/src/LayoutBuilderEvents.php @ 0:c75dbcec494b

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