You are here

public function SectionStorageManagerInterface::loadEmpty in Drupal 8

Same name and namespace in other branches
  1. 9 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\SectionStorage

Code

public function loadEmpty($type);