You are here

public function PageVariantAddForm::__construct in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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.

\Drupal\Core\TempStore\SharedTempStoreFactory $tempstore: The shared temp store factory.

File

page_manager_ui/src/Form/PageVariantAddForm.php, line 40

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;
}