function LayoutTempstoreRouteEnhancer::__construct

Same name in other branches
  1. 9 core/modules/layout_builder/src/Routing/LayoutTempstoreRouteEnhancer.php \Drupal\layout_builder\Routing\LayoutTempstoreRouteEnhancer::__construct()
  2. 11.x core/modules/layout_builder/src/Routing/LayoutTempstoreRouteEnhancer.php \Drupal\layout_builder\Routing\LayoutTempstoreRouteEnhancer::__construct()

Constructs a new LayoutTempstoreRouteEnhancer.

Parameters

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

File

core/modules/layout_builder/src/Routing/LayoutTempstoreRouteEnhancer.php, line 29

Class

LayoutTempstoreRouteEnhancer
Loads the section storage from the layout tempstore.

Namespace

Drupal\layout_builder\Routing

Code

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

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