You are here

public function WebformHandlerDeleteForm::buildForm in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/WebformHandlerDeleteForm.php \Drupal\webform\Form\WebformHandlerDeleteForm::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/WebformHandlerDeleteForm.php, line 98

Class

WebformHandlerDeleteForm
Form for deleting a webform handler.

Namespace

Drupal\webform\Form

Code

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