interface DefaultsSectionStorageInterface in Drupal 9
Same name and namespace in other branches
- 8 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
- interface \Drupal\layout_builder\SectionStorageInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterface; interface \Drupal\layout_builder\LayoutBuilderEnabledInterface
- interface \Drupal\layout_builder\DefaultsSectionStorageInterface
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_builderView 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);
}
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. | |
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. | 2 |
ContextAwarePluginInterface:: |
public | function | Sets a mapping of the expected assignment names to their context names. | |
ContextAwarePluginInterface:: |
public | function | Sets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Validates the set values for the defined contexts. | 1 |
DefaultsSectionStorageInterface:: |
public | function | Determines if the defaults allow custom overrides. | 1 |
DefaultsSectionStorageInterface:: |
public | function | Sets the defaults to allow or disallow overrides. | 1 |
LayoutBuilderEnabledInterface:: |
public | function | Disables the Layout Builder. | 2 |
LayoutBuilderEnabledInterface:: |
public | function | Enables the Layout Builder. | 2 |
LayoutBuilderEnabledInterface:: |
public | function | Determines if Layout Builder is enabled. | 2 |
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 | 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 | 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 |
ThirdPartySettingsInterface:: |
public | function | Gets the list of third parties that store information. | 5 |
ThirdPartySettingsInterface:: |
public | function | Gets the value of a third-party setting. | 5 |
ThirdPartySettingsInterface:: |
public | function | Gets all third-party settings of a given module. | 5 |
ThirdPartySettingsInterface:: |
public | function | Sets the value of a third-party setting. | 5 |
ThirdPartySettingsInterface:: |
public | function | Unsets a third-party setting. | 5 |