function SimpleConfigSectionStorage::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.

Overrides SectionStorageInterface::getSectionListFromId

File

core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php, line 204

Class

SimpleConfigSectionStorage
Provides section storage utilizing simple config.

Namespace

Drupal\layout_builder_test\Plugin\SectionStorage

Code

public function getSectionListFromId($id) {
  @trigger_error('\\Drupal\\layout_builder\\SectionStorageInterface::getSectionListFromId() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. The section list should be derived from context. See https://www.drupal.org/node/3016262.', E_USER_DEPRECATED);
  return $this;
}

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