You are here

public function DeleteWordForm::buildForm in Restrict Abusive Words 8

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 ConfirmFormBase::buildForm

File

src/Form/DeleteWordForm.php, line 53
Contains \Drupal\restrict_abusive_words\Form\DeleteWordForm.

Class

DeleteWordForm
Contribute form.

Namespace

Drupal\restrict_abusive_words\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $wid = NULL) {
  $this->wid = $wid;
  return parent::buildForm($form, $form_state);
}