function SectionStorageInterface::getSectionListFromId

Derives the section list from the storage ID.

@internal This should only be called during section storage instantiation.

Parameters

string $id: The storage ID, see ::getStorageId().

Return value

\Drupal\layout_builder\SectionListInterface The section list.

Throws

\InvalidArgumentException Thrown if the ID is invalid.

Deprecated

in drupal:8.7.0 and is removed from drupal:9.0.0. The section list should be derived from context. See https://www.drupal.org/node/3016262.

4 methods override SectionStorageInterface::getSectionListFromId()
DefaultsSectionStorage::getSectionListFromId in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Derives the section list from the storage ID.
OverridesSectionStorage::getSectionListFromId in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Derives the section list from the storage ID.
SimpleConfigSectionStorage::getSectionListFromId in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
Derives the section list from the storage ID.
TestStateBasedSectionStorage::getSectionListFromId in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
Derives the section list from the storage ID.

File

core/modules/layout_builder/src/SectionStorageInterface.php, line 54

Class

SectionStorageInterface
Defines an interface for Section Storage type plugins.

Namespace

Drupal\layout_builder

Code

public function getSectionListFromId($id);

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