function NodeRevisionRevertForm::buildForm

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

Overrides ConfirmFormBase::buildForm

1 method overrides NodeRevisionRevertForm::buildForm()
NodeRevisionRevertTranslationForm::buildForm in core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php
Form constructor.

File

core/modules/node/src/Form/NodeRevisionRevertForm.php, line 114

Class

NodeRevisionRevertForm
Provides a form for reverting a node revision.

Namespace

Drupal\node\Form

Code

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

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