public function NodeRevisionRevertDefaultForm::buildForm in Thunder 8.4
Same name and namespace in other branches
- 8.5 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::buildForm()
- 8.2 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::buildForm()
- 8.3 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::buildForm()
- 6.2.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::buildForm()
- 6.0.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::buildForm()
- 6.1.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::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 NodeRevisionRevertForm::buildForm
File
- modules/
thunder_article/ src/ Form/ NodeRevisionRevertDefaultForm.php, line 42
Class
- NodeRevisionRevertDefaultForm
- Provides a form for reverting a node revision.
Namespace
Drupal\thunder_article\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $node = NULL) {
$this->revision = $this->nodeStorage
->load($node);
$form = ConfirmFormBase::buildForm($form, $form_state);
return $form;
}