function DeleteForm::buildForm

Same name in other branches
  1. 9 core/modules/forum/src/Form/DeleteForm.php \Drupal\forum\Form\DeleteForm::buildForm()
  2. 8.9.x core/modules/forum/src/Form/DeleteForm.php \Drupal\forum\Form\DeleteForm::buildForm()
  3. 10 core/modules/forum/src/Form/DeleteForm.php \Drupal\forum\Form\DeleteForm::buildForm()

Overrides ConfirmFormBase::buildForm

File

core/modules/forum/src/Form/DeleteForm.php, line 55

Class

DeleteForm
Builds the form to delete a forum term.

Namespace

Drupal\forum\Form

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.