You are here

public function AddSectionController::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Controller/AddSectionController.php \Drupal\layout_builder\Controller\AddSectionController::__construct()
  2. 9 core/modules/layout_builder/src/Controller/AddSectionController.php \Drupal\layout_builder\Controller\AddSectionController::__construct()

AddSectionController constructor.

Parameters

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

File

core/modules/layout_builder/src/Controller/AddSectionController.php, line 37

Class

AddSectionController
Defines a controller to add a new section.

Namespace

Drupal\layout_builder\Controller

Code

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