function PrepareLayout::__construct
Same name and namespace in other branches
- 11.x core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php \Drupal\layout_builder\EventSubscriber\PrepareLayout::__construct()
- 10 core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php \Drupal\layout_builder\EventSubscriber\PrepareLayout::__construct()
- 9 core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php \Drupal\layout_builder\EventSubscriber\PrepareLayout::__construct()
Constructs a new PrepareLayout.
Parameters
\Drupal\layout_builder\LayoutTempstoreRepositoryInterface $layoutTempstoreRepository: The tempstore repository.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
File
-
core/
modules/ layout_builder/ src/ EventSubscriber/ PrepareLayout.php, line 34
Class
- PrepareLayout
- An event subscriber to prepare section storage.
Namespace
Drupal\layout_builder\EventSubscriberCode
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.