Mercurial > hg > cmmr2012-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\layout_builder; | |
4 | |
5 /** | |
6 * Defines events for the layout_builder module. | |
7 * | |
8 * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent | |
9 * | |
10 * @internal | |
11 * Layout Builder is currently experimental and should only be leveraged by | |
12 * experimental modules and development releases of contributed modules. | |
13 * See https://www.drupal.org/core/experimental for more information. | |
14 */ | |
15 final class LayoutBuilderEvents { | |
16 | |
17 /** | |
18 * Name of the event fired when a component's render array is built. | |
19 * | |
20 * This event allows modules to collaborate on creating the render array of | |
21 * the SectionComponent object. The event listener method receives a | |
22 * \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent | |
23 * instance. | |
24 * | |
25 * @Event | |
26 * | |
27 * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent | |
28 * @see \Drupal\layout_builder\SectionComponent::toRenderArray() | |
29 * | |
30 * @var string | |
31 */ | |
32 const SECTION_COMPONENT_BUILD_RENDER_ARRAY = 'section_component.build.render_array'; | |
33 | |
34 } |