You are here

public function PrepareLayout::__construct in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php \Drupal\layout_builder\EventSubscriber\PrepareLayout::__construct()

Constructs a new PrepareLayout.

Parameters

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

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php, line 46

Class

PrepareLayout
An event subscriber to prepare section storage via the \Drupal\layout_builder\Event\PrepareLayoutEvent.

Namespace

Drupal\layout_builder\EventSubscriber

Code

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