public function NodeRevisionRevertForm::buildForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Form/NodeRevisionRevertForm.php \Drupal\node\Form\NodeRevisionRevertForm::buildForm()
- 9 core/modules/node/src/Form/NodeRevisionRevertForm.php \Drupal\node\Form\NodeRevisionRevertForm::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
- core/
modules/ node/ src/ Form/ NodeRevisionRevertForm.php, line 114
Class
- NodeRevisionRevertForm
- Provides a form for reverting a node revision.
Namespace
Drupal\node\FormCode
public function buildForm(array $form, FormStateInterface $form_state, NodeInterface $node_revision = NULL) {
$this->revision = $node_revision;
$form = parent::buildForm($form, $form_state);
return $form;
}