interface DefaultsSectionStorageInterface

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/src/DefaultsSectionStorageInterface.php \Drupal\layout_builder\DefaultsSectionStorageInterface

Defines an interface for an object that stores layout sections for defaults.

@todo Refactor this interface in https://www.drupal.org/node/2985362.

Hierarchy

Expanded class hierarchy of DefaultsSectionStorageInterface

All classes that implement DefaultsSectionStorageInterface

5 files declare their use of DefaultsSectionStorageInterface
DefaultsSectionStorage.php in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
LayoutBuilderDisableForm.php in core/modules/layout_builder/src/Form/LayoutBuilderDisableForm.php
LayoutBuilderRoutesTrait.php in core/modules/layout_builder/src/Routing/LayoutBuilderRoutesTrait.php
LayoutEntityHelperTraitTest.php in core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php
OverridesSectionStorageTest.php in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php

File

core/modules/layout_builder/src/DefaultsSectionStorageInterface.php, line 12

Namespace

Drupal\layout_builder
View source
interface DefaultsSectionStorageInterface extends SectionStorageInterface, ThirdPartySettingsInterface, LayoutBuilderEnabledInterface {
  
  /**
   * 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);

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.