You are here

public function RevisionRevertForm::buildForm in Entity API 8

Same name and namespace in other branches
  1. 8.0 src/Form/RevisionRevertForm.php \Drupal\entity\Form\RevisionRevertForm::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/Form/RevisionRevertForm.php, line 104

Class

RevisionRevertForm

Namespace

Drupal\entity\Form

Code

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