interface OverridesSectionStorageInterface

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/src/OverridesSectionStorageInterface.php \Drupal\layout_builder\OverridesSectionStorageInterface
  2. 10 core/modules/layout_builder/src/OverridesSectionStorageInterface.php \Drupal\layout_builder\OverridesSectionStorageInterface
  3. 8.9.x core/modules/layout_builder/src/OverridesSectionStorageInterface.php \Drupal\layout_builder\OverridesSectionStorageInterface

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

Hierarchy

Expanded class hierarchy of OverridesSectionStorageInterface

All classes that implement OverridesSectionStorageInterface

6 files declare their use of OverridesSectionStorageInterface
LayoutBuilderRoutesTrait.php in core/modules/layout_builder/src/Routing/LayoutBuilderRoutesTrait.php
LayoutEntityHelperTraitTest.php in core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php
OverridesEntityForm.php in core/modules/layout_builder/src/Form/OverridesEntityForm.php
OverridesSectionStorage.php in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
PrepareLayout.php in core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php

... See full list

File

core/modules/layout_builder/src/OverridesSectionStorageInterface.php, line 8

Namespace

Drupal\layout_builder
View source
interface OverridesSectionStorageInterface extends SectionStorageInterface {
  
  /**
   * Returns the corresponding defaults section storage for this override.
   *
   * @return \Drupal\layout_builder\DefaultsSectionStorageInterface
   *   The defaults section storage.
   *
   * @todo Determine if this method needs a parameter in
   *   https://www.drupal.org/project/drupal/issues/2907413.
   */
  public function getDefaultSectionStorage();
  
  /**
   * Indicates if overrides are in use.
   *
   * @return bool
   *   TRUE if this overrides section storage is in use, otherwise FALSE.
   */
  public function isOverridden();

}

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