Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / layout_builder / src / DefaultsSectionStorageInterface.php
diff --git a/web/core/modules/layout_builder/src/DefaultsSectionStorageInterface.php b/web/core/modules/layout_builder/src/DefaultsSectionStorageInterface.php
new file mode 100644 (file)
index 0000000..9397c6c
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+
+namespace Drupal\layout_builder;
+
+/**
+ * Defines an interface for an object that stores layout sections for defaults.
+ *
+ * @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.
+ */
+interface DefaultsSectionStorageInterface extends SectionStorageInterface {
+
+  /**
+   * Determines if the defaults allow custom overrides.
+   *
+   * @return bool
+   *   TRUE if custom overrides are allowed, FALSE otherwise.
+   */
+  public function isOverridable();
+
+  /**
+   * Sets the defaults to allow or disallow overrides.
+   *
+   * @param bool $overridable
+   *   TRUE if the display should allow overrides, FALSE otherwise.
+   *
+   * @return $this
+   */
+  public function setOverridable($overridable = TRUE);
+
+}