You are here

public function PageVariantAddForm::__construct in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Form/PageVariantAddForm.php \Drupal\page_manager_ui\Form\PageVariantAddForm::__construct()

Constructs a new DisplayVariantAddForm.

Parameters

\Drupal\Core\Display\VariantManager $variant_manager: The variant manager.

File

page_manager_ui/src/Form/PageVariantAddForm.php, line 43
Contains Drupal\page_manager_ui\Form\PageVariantAddForm.

Class

PageVariantAddForm
Provides a form for adding a variant.

Namespace

Drupal\page_manager_ui\Form

Code

public function __construct(VariantManager $variant_manager, SharedTempStoreFactory $tempstore) {
  $this->variantManager = $variant_manager;
  $this->tempstore = $tempstore;
}