function SectionStorageManagerInterface::loadEmpty
Same name in other branches
- 9 core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::loadEmpty()
- 10 core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::loadEmpty()
- 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.
1 method overrides SectionStorageManagerInterface::loadEmpty()
- SectionStorageManager::loadEmpty in core/
modules/ layout_builder/ src/ SectionStorage/ SectionStorageManager.php - Loads a section storage with no associated section list.
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\SectionStorageCode
public function loadEmpty($type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.