function LayoutTempstoreRepository::__construct

Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/LayoutTempstoreRepository.php \Drupal\layout_builder\LayoutTempstoreRepository::__construct()
  2. 10 core/modules/layout_builder/src/LayoutTempstoreRepository.php \Drupal\layout_builder\LayoutTempstoreRepository::__construct()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.