function LayoutTempstoreRepositoryInterface::get
Same name in other branches
- 8.9.x core/modules/layout_builder/src/LayoutTempstoreRepositoryInterface.php \Drupal\layout_builder\LayoutTempstoreRepositoryInterface::get()
- 10 core/modules/layout_builder/src/LayoutTempstoreRepositoryInterface.php \Drupal\layout_builder\LayoutTempstoreRepositoryInterface::get()
- 11.x core/modules/layout_builder/src/LayoutTempstoreRepositoryInterface.php \Drupal\layout_builder\LayoutTempstoreRepositoryInterface::get()
Gets the tempstore version of a section storage, if it exists.
@throw \UnexpectedValueException Thrown if a value exists, but is not a section storage.
Parameters
\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage to check for in tempstore.
Return value
\Drupal\layout_builder\SectionStorageInterface Either the version of this section storage from tempstore, or the passed section storage if none exists.
1 method overrides LayoutTempstoreRepositoryInterface::get()
- LayoutTempstoreRepository::get in core/
modules/ layout_builder/ src/ LayoutTempstoreRepository.php - Gets the tempstore version of a section storage, if it exists.
File
-
core/
modules/ layout_builder/ src/ LayoutTempstoreRepositoryInterface.php, line 23
Class
- LayoutTempstoreRepositoryInterface
- Provides an interface for loading layouts from tempstore.
Namespace
Drupal\layout_builderCode
public function get(SectionStorageInterface $section_storage);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.