You are here

public function SectionStorageManagerInterface::load in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load()
  2. 9 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\SectionStorage

Code

public function load($type, array $contexts = []);