function TestPrepareLayout::__construct

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/tests/modules/layout_builder_element_test/src/EventSubscriber/TestPrepareLayout.php \Drupal\layout_builder_element_test\EventSubscriber\TestPrepareLayout::__construct()
  2. 10 core/modules/layout_builder/tests/modules/layout_builder_element_test/src/EventSubscriber/TestPrepareLayout.php \Drupal\layout_builder_element_test\EventSubscriber\TestPrepareLayout::__construct()
  3. 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 $layoutTempstoreRepository: 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 34

Class

TestPrepareLayout
Provides an event subscriber for testing section storage alteration.

Namespace

Drupal\layout_builder_element_test\EventSubscriber

Code

public function __construct(protected LayoutTempstoreRepositoryInterface $layoutTempstoreRepository, protected MessengerInterface $messenger) {
}

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