function SectionStorageManager::loadEmpty

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

Overrides SectionStorageManagerInterface::loadEmpty

1 call to SectionStorageManager::loadEmpty()
SectionStorageManager::load in core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php
Loads a section storage with the provided contexts applied.

File

core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php, line 106

Class

SectionStorageManager
Provides the Section Storage type plugin manager.

Namespace

Drupal\layout_builder\SectionStorage

Code

public function loadEmpty($type) {
    return $this->createInstance($type);
}

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