You are here

public function SectionStorageManagerInterface::loadFromRoute in Drupal 8

Loads a section storage populated with a section list derived from a route.

Parameters

string $type: The section storage type.

string $value: The raw value.

mixed $definition: The parameter definition provided in the route options.

string $name: The name of the parameter.

array $defaults: The route defaults array.

Return value

\Drupal\layout_builder\SectionStorageInterface|null The section storage if it could be loaded, or NULL otherwise.

See also

\Drupal\Core\ParamConverter\ParamConverterInterface::convert()

1 method overrides SectionStorageManagerInterface::loadFromRoute()
SectionStorageManager::loadFromRoute in core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php
Loads a section storage populated with a section list derived from a route.

File

core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php, line 106

Class

SectionStorageManagerInterface
Provides the interface for a plugin manager of section storage types.

Namespace

Drupal\layout_builder\SectionStorage

Code

public function loadFromRoute($type, $value, $definition, $name, array $defaults);