public function RevertOverridesForm::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/src/Form/RevertOverridesForm.php \Drupal\layout_builder\Form\RevertOverridesForm::__construct()
- 10 core/modules/layout_builder/src/Form/RevertOverridesForm.php \Drupal\layout_builder\Form\RevertOverridesForm::__construct()
Constructs a new RevertOverridesForm.
Parameters
\Drupal\layout_builder\LayoutTempstoreRepositoryInterface $layout_tempstore_repository: The layout tempstore repository.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
File
- core/
modules/ layout_builder/ src/ Form/ RevertOverridesForm.php, line 50
Class
- RevertOverridesForm
- Reverts the overridden layout to the defaults.
Namespace
Drupal\layout_builder\FormCode
public function __construct(LayoutTempstoreRepositoryInterface $layout_tempstore_repository, MessengerInterface $messenger) {
$this->layoutTempstoreRepository = $layout_tempstore_repository;
$this->messenger = $messenger;
}