function NodeRevisionDeleteForm::buildForm
Same name in other branches
- 9 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::buildForm()
- 10 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::buildForm()
- 11.x core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::buildForm()
Overrides ConfirmFormBase::buildForm
File
-
core/
modules/ node/ src/ Form/ NodeRevisionDeleteForm.php, line 120
Class
- NodeRevisionDeleteForm
- Provides a form for deleting a node revision.
Namespace
Drupal\node\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $node_revision = NULL) {
$this->revision = $this->nodeStorage
->loadRevision($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.