You are here

public function GroupRevisionDeleteForm::buildForm in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Form/GroupRevisionDeleteForm.php \Drupal\group\Entity\Form\GroupRevisionDeleteForm::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 ConfirmFormBase::buildForm

File

src/Entity/Form/GroupRevisionDeleteForm.php, line 93

Class

GroupRevisionDeleteForm
Provides a form for deleting a group revision.

Namespace

Drupal\group\Entity\Form

Code

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