Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / layout_builder / src / LayoutBuilderEvents.php
diff --git a/web/core/modules/layout_builder/src/LayoutBuilderEvents.php b/web/core/modules/layout_builder/src/LayoutBuilderEvents.php
new file mode 100644 (file)
index 0000000..b680f98
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+namespace Drupal\layout_builder;
+
+/**
+ * Defines events for the layout_builder module.
+ *
+ * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
+ *
+ * @internal
+ *   Layout Builder is currently experimental and should only be leveraged by
+ *   experimental modules and development releases of contributed modules.
+ *   See https://www.drupal.org/core/experimental for more information.
+ */
+final class LayoutBuilderEvents {
+
+  /**
+   * 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.
+   *
+   * @Event
+   *
+   * @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
+   * @see \Drupal\layout_builder\SectionComponent::toRenderArray()
+   *
+   * @var string
+   */
+  const SECTION_COMPONENT_BUILD_RENDER_ARRAY = 'section_component.build.render_array';
+
+}