function SectionStorageManagerInterface::load

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

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 = []);

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