3 namespace Drupal\layout_builder;
5 use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
8 * Defines an interface for an object that stores layout sections for defaults.
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.
15 * @todo Refactor this interface in https://www.drupal.org/node/2985362.
17 interface DefaultsSectionStorageInterface extends SectionStorageInterface, ThirdPartySettingsInterface, LayoutBuilderEnabledInterface {
20 * Determines if the defaults allow custom overrides.
23 * TRUE if custom overrides are allowed, FALSE otherwise.
25 public function isOverridable();
28 * Sets the defaults to allow or disallow overrides.
30 * @param bool $overridable
31 * TRUE if the display should allow overrides, FALSE otherwise.
35 public function setOverridable($overridable = TRUE);