You are here

public function WebformVariantAddForm::__construct in Webform 8.5

Constructs a WebformVariantAddForm.

Parameters

\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.

\Drupal\webform\Plugin\WebformVariantManagerInterface $webform_variant: The webform variant manager.

Overrides WebformVariantFormBase::__construct

File

src/Form/WebformVariantAddForm.php, line 32

Class

WebformVariantAddForm
Provides an add form for webform variant.

Namespace

Drupal\webform\Form

Code

public function __construct(WebformTokenManagerInterface $token_manager, WebformVariantManagerInterface $webform_variant) {
  parent::__construct($token_manager);
  $this->webformVariantManager = $webform_variant;
}