You are here

public function LayoutBuilderDisableForm::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Form/LayoutBuilderDisableForm.php \Drupal\layout_builder\Form\LayoutBuilderDisableForm::__construct()
  2. 9 core/modules/layout_builder/src/Form/LayoutBuilderDisableForm.php \Drupal\layout_builder\Form\LayoutBuilderDisableForm::__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/LayoutBuilderDisableForm.php, line 43

Class

LayoutBuilderDisableForm
Disables Layout Builder for a given default.

Namespace

Drupal\layout_builder\Form

Code

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