interface OverridesSectionStorageInterface in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/src/OverridesSectionStorageInterface.php \Drupal\layout_builder\OverridesSectionStorageInterface
- 10 core/modules/layout_builder/src/OverridesSectionStorageInterface.php \Drupal\layout_builder\OverridesSectionStorageInterface
Defines an interface for an object that stores layout sections for overrides.
Hierarchy
- interface \Drupal\layout_builder\SectionListInterface extends \Drupal\layout_builder\Countable; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\ContextAwarePluginInterface; interface \Drupal\Core\Access\AccessibleInterface
- interface \Drupal\layout_builder\SectionStorageInterface
- interface \Drupal\layout_builder\OverridesSectionStorageInterface
- interface \Drupal\layout_builder\SectionStorageInterface
Expanded class hierarchy of OverridesSectionStorageInterface
All classes that implement OverridesSectionStorageInterface
7 files declare their use of OverridesSectionStorageInterface
- LayoutBuilder.php in core/
modules/ layout_builder/ src/ Element/ LayoutBuilder.php - LayoutBuilderIsActiveCacheContext.php in core/
modules/ layout_builder/ src/ Cache/ LayoutBuilderIsActiveCacheContext.php - 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
File
- core/
modules/ layout_builder/ src/ OverridesSectionStorageInterface.php, line 8
Namespace
Drupal\layout_builderView 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();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContextAwarePluginInterface:: |
public | function | Gets a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function |
Gets a specific context definition of the plugin. Overrides ContextAwarePluginInterface:: |
|
ContextAwarePluginInterface:: |
public | function |
Gets the context definitions of the plugin. Overrides ContextAwarePluginInterface:: |
|
ContextAwarePluginInterface:: |
public | function | Gets a mapping of the expected assignment names to their context names. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the defined contexts. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the values for all defined contexts. | 1 |
ContextAwarePluginInterface:: |
public | function | Set a context on this plugin. | 1 |
ContextAwarePluginInterface:: |
public | function | Sets a mapping of the expected assignment names to their context names. | 1 |
ContextAwarePluginInterface:: |
public | function | Sets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Validates the set values for the defined contexts. | 1 |
OverridesSectionStorageInterface:: |
public | function | Returns the corresponding defaults section storage for this override. | 1 |
OverridesSectionStorageInterface:: |
public | function | Indicates if overrides are in use. | 1 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
SectionListInterface:: |
public | function | Appends a new section to the end of the list. | 1 |
SectionListInterface:: |
public | function | Gets a domain object for the layout section. | 1 |
SectionListInterface:: |
public | function | Gets the layout sections. | 5 |
SectionListInterface:: |
public | function | Inserts a new section at a given delta. | 1 |
SectionListInterface:: |
public | function | Removes all of the sections. | 1 |
SectionListInterface:: |
public | function | Removes the section at the given delta. | 1 |
SectionStorageInterface:: |
public | function |
Overrides \Drupal\Core\Access\AccessibleInterface::access(). Overrides AccessibleInterface:: |
4 |
SectionStorageInterface:: |
public | function | Provides the routes needed for Layout Builder UI. | 4 |
SectionStorageInterface:: |
public | function | Derives the available plugin contexts from route values. | 4 |
SectionStorageInterface:: |
public | function | Configures the plugin based on route values. | 4 |
SectionStorageInterface:: |
public | function | Gets contexts for use during preview. | 2 |
SectionStorageInterface:: |
public | function | Gets the URL used to display the Layout Builder UI. | 4 |
SectionStorageInterface:: |
public | function |
Overrides \Drupal\Component\Plugin\PluginInspectionInterface::getPluginDefinition(). Overrides PluginInspectionInterface:: |
|
SectionStorageInterface:: |
public | function | Gets the URL used when redirecting away from the Layout Builder UI. | 4 |
SectionStorageInterface:: |
public | function | Derives the section list from the storage ID. | 4 |
SectionStorageInterface:: |
public | function | Returns an identifier for this storage. | 4 |
SectionStorageInterface:: |
public | function | Returns the type of this storage. | 2 |
SectionStorageInterface:: |
public | function | Determines if this section storage is applicable for the current contexts. | 4 |
SectionStorageInterface:: |
public | function | Gets the label for the object using the sections. | 4 |
SectionStorageInterface:: |
public | function | Saves the sections. | 4 |