function SectionStorageManagerInterface::loadEmpty

Same name in other branches
  1. 9 core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::loadEmpty()
  2. 8.9.x core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::loadEmpty()
  3. 11.x core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::loadEmpty()

Loads a section storage with no associated section list.

@internal Section storage relies on context to load section lists. Use ::load() when that context is available. This method is intended for use by collaborators of the plugins in build-time situations when section storage type must be consulted.

Parameters

string $type: The type of the section storage being instantiated.

Return value

\Drupal\layout_builder\SectionStorageInterface The section storage.

File

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

Class

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

Namespace

Drupal\layout_builder\SectionStorage

Code

public function loadEmpty($type);

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