public function LayoutTempstoreRepository::set in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/LayoutTempstoreRepository.php \Drupal\layout_builder\LayoutTempstoreRepository::set()
Stores this section storage in tempstore.
Parameters
\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage to set in tempstore.
Overrides LayoutTempstoreRepositoryInterface::set
File
- core/
modules/ layout_builder/ src/ LayoutTempstoreRepository.php, line 58
Class
- LayoutTempstoreRepository
- Provides a mechanism for loading layouts from tempstore.
Namespace
Drupal\layout_builderCode
public function set(SectionStorageInterface $section_storage) {
$key = $this
->getKey($section_storage);
$this
->getTempstore($section_storage)
->set($key, [
'section_storage' => $section_storage,
]);
}