function LayoutTempstoreParamConverter::__construct

Constructs a new LayoutTempstoreParamConverter.

Parameters

\Drupal\layout_builder\LayoutTempstoreRepositoryInterface $layout_tempstore_repository: The layout tempstore repository.

\Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface $section_storage_manager: The section storage manager.

File

core/modules/layout_builder/src/Routing/LayoutTempstoreParamConverter.php, line 40

Class

LayoutTempstoreParamConverter
Loads the section storage from the layout tempstore.

Namespace

Drupal\layout_builder\Routing

Code

public function __construct(LayoutTempstoreRepositoryInterface $layout_tempstore_repository, SectionStorageManagerInterface $section_storage_manager) {
    $this->layoutTempstoreRepository = $layout_tempstore_repository;
    $this->sectionStorageManager = $section_storage_manager;
}

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