You are here

public function TestPrepareLayout::__construct in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/modules/layout_builder_element_test/src/EventSubscriber/TestPrepareLayout.php \Drupal\layout_builder_element_test\EventSubscriber\TestPrepareLayout::__construct()

Constructs a new TestPrepareLayout.

Parameters

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

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

File

core/modules/layout_builder/tests/modules/layout_builder_element_test/src/EventSubscriber/TestPrepareLayout.php, line 47

Class

TestPrepareLayout
An event subscriber to test altering section storage via the \Drupal\layout_builder\Event\PrepareLayoutEvent.

Namespace

Drupal\layout_builder_element_test\EventSubscriber

Code

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