public function MultiversionRevisionRevertForm::submitForm in Multiversion 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides NodeRevisionRevertForm::submitForm
File
- src/
Form/ MultiversionRevisionRevertForm.php, line 16
Class
- MultiversionRevisionRevertForm
- Adds a flag when the entity is reverting.
Namespace
Drupal\multiversion\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->revision->is_reverting = TRUE;
parent::submitForm($form, $form_state);
}