You are here

public function WebformVariantDeleteForm::buildForm in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/WebformVariantDeleteForm.php \Drupal\webform\Form\WebformVariantDeleteForm::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides WebformDeleteFormBase::buildForm

File

src/Form/WebformVariantDeleteForm.php, line 97

Class

WebformVariantDeleteForm
Form for deleting a webform variant.

Namespace

Drupal\webform\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, WebformInterface $webform = NULL, $webform_variant = NULL) {
  $this->webform = $webform;
  $this->webformVariant = $this->webform
    ->getVariant($webform_variant);
  return parent::buildForm($form, $form_state);
}