Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / layout_builder / src / Annotation / SectionStorage.php
diff --git a/web/core/modules/layout_builder/src/Annotation/SectionStorage.php b/web/core/modules/layout_builder/src/Annotation/SectionStorage.php
new file mode 100644 (file)
index 0000000..42f4a47
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace Drupal\layout_builder\Annotation;
+
+use Drupal\Component\Annotation\Plugin;
+use Drupal\layout_builder\SectionStorage\SectionStorageDefinition;
+
+/**
+ * Defines a Section Storage type annotation object.
+ *
+ * @see \Drupal\layout_builder\SectionStorage\SectionStorageManager
+ * @see plugin_api
+ *
+ * @Annotation
+ */
+class SectionStorage extends Plugin {
+
+  /**
+   * The plugin ID.
+   *
+   * @var string
+   */
+  public $id;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function get() {
+    return new SectionStorageDefinition($this->definition);
+  }
+
+}