Mercurial > hg > isophonics-drupal-site
annotate core/modules/layout_builder/src/LayoutBuilderEvents.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | af1871eacc83 |
children |
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 final class LayoutBuilderEvents { |
Chris@14 | 11 |
Chris@14 | 12 /** |
Chris@14 | 13 * Name of the event fired when a component's render array is built. |
Chris@14 | 14 * |
Chris@14 | 15 * This event allows modules to collaborate on creating the render array of |
Chris@14 | 16 * the SectionComponent object. The event listener method receives a |
Chris@14 | 17 * \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent |
Chris@14 | 18 * instance. |
Chris@14 | 19 * |
Chris@14 | 20 * @Event |
Chris@14 | 21 * |
Chris@14 | 22 * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent |
Chris@14 | 23 * @see \Drupal\layout_builder\SectionComponent::toRenderArray() |
Chris@14 | 24 * |
Chris@14 | 25 * @var string |
Chris@14 | 26 */ |
Chris@14 | 27 const SECTION_COMPONENT_BUILD_RENDER_ARRAY = 'section_component.build.render_array'; |
Chris@14 | 28 |
Chris@14 | 29 } |