function SectionStorageManagerInterface::load
Same name in other branches
- 9 core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load()
- 10 core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load()
- 11.x core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load()
Loads a section storage with the provided contexts applied.
Parameters
string $type: The section storage type.
\Drupal\Component\Plugin\Context\ContextInterface[] $contexts: (optional) The contexts available for this storage to use.
Return value
\Drupal\layout_builder\SectionStorageInterface|null The section storage or NULL if its context requirements are not met.
1 method overrides SectionStorageManagerInterface::load()
- SectionStorageManager::load in core/
modules/ layout_builder/ src/ SectionStorage/ SectionStorageManager.php - Loads a section storage with the provided contexts applied.
File
-
core/
modules/ layout_builder/ src/ SectionStorage/ SectionStorageManagerInterface.php, line 24
Class
- SectionStorageManagerInterface
- Provides the interface for a plugin manager of section storage types.
Namespace
Drupal\layout_builder\SectionStorageCode
public function load($type, array $contexts = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.