You are here

public function LayoutTempstoreRepository::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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_builder

Code

public function __construct(SharedTempStoreFactory $temp_store_factory) {
  $this->tempStoreFactory = $temp_store_factory;
}