OverridesSectionStorageInterface.php

Same filename and directory in other branches
  1. 9 core/modules/layout_builder/src/OverridesSectionStorageInterface.php
  2. 10 core/modules/layout_builder/src/OverridesSectionStorageInterface.php
  3. 11.x core/modules/layout_builder/src/OverridesSectionStorageInterface.php

Namespace

Drupal\layout_builder

File

core/modules/layout_builder/src/OverridesSectionStorageInterface.php

View source
<?php

namespace Drupal\layout_builder;


/**
 * Defines an interface for an object that stores layout sections for overrides.
 */
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();

}

Interfaces

Title Deprecated Summary
OverridesSectionStorageInterface Defines an interface for an object that stores layout sections for overrides.

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