You are here

public function SectionStorageManagerInterface::loadFromStorageId in Drupal 8

Loads a section storage populated with an existing section list.

Parameters

string $type: The section storage type.

string $id: The section list ID.

Return value

\Drupal\layout_builder\SectionStorageInterface The section storage.

Throws

\InvalidArgumentException Thrown if the ID is invalid.

Deprecated

in drupal:8.7.0 and is removed from drupal:9.0.0. \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load() should be used instead. See https://www.drupal.org/node/3012353.

1 method overrides SectionStorageManagerInterface::loadFromStorageId()
SectionStorageManager::loadFromStorageId in core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php
Loads a section storage populated with an existing section list.

File

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

Class

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

Namespace

Drupal\layout_builder\SectionStorage

Code

public function loadFromStorageId($type, $id);