function LayoutTempstoreRepository::set
Same name in other branches
- 9 core/modules/layout_builder/src/LayoutTempstoreRepository.php \Drupal\layout_builder\LayoutTempstoreRepository::set()
- 8.9.x core/modules/layout_builder/src/LayoutTempstoreRepository.php \Drupal\layout_builder\LayoutTempstoreRepository::set()
- 10 core/modules/layout_builder/src/LayoutTempstoreRepository.php \Drupal\layout_builder\LayoutTempstoreRepository::set()
File
-
core/
modules/ layout_builder/ src/ LayoutTempstoreRepository.php, line 80
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,
]);
// Update the storage in the static cache.
$this->cache[$key] = $section_storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.