public function LayoutTempstoreRepository::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/LayoutTempstoreRepository.php \Drupal\layout_builder\LayoutTempstoreRepository::__construct()
LayoutTempstoreRepository constructor.
Parameters
\Drupal\Core\TempStore\SharedTempStoreFactory $temp_store_factory: The shared tempstore factory.
File
- core/
modules/ layout_builder/ src/ LayoutTempstoreRepository.php, line 25
Class
- LayoutTempstoreRepository
- Provides a mechanism for loading layouts from tempstore.
Namespace
Drupal\layout_builderCode
public function __construct(SharedTempStoreFactory $temp_store_factory) {
$this->tempStoreFactory = $temp_store_factory;
}