You are here

public function ReferenceRevisionDeleteForm::buildForm in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/Form/ReferenceRevisionDeleteForm.php \Drupal\bibcite_entity\Form\ReferenceRevisionDeleteForm::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

modules/bibcite_entity/src/Form/ReferenceRevisionDeleteForm.php, line 111

Class

ReferenceRevisionDeleteForm
Provides a form for reverting a reference revision.

Namespace

Drupal\bibcite_entity\Form

Code

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