public function WebformVariantDeleteForm::buildForm in Webform 8.5
Same name and namespace in other branches
- 6.x 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\FormCode
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);
}