public function ConfigEntityRevisionsRevertFormBase::submitForm in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::submitForm()
- 1.x src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::submitForm()
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 FormInterface::submitForm
File
- src/
ConfigEntityRevisionsRevertFormBase.php, line 304
Class
- ConfigEntityRevisionsRevertFormBase
- Provides a form for reverting / publishing a revision.
Namespace
Drupal\config_entity_revisionsCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->applyRevisionChange();
$this
->updateConfigEntity();
$this
->logUpdate();
$this
->displayUpdate();
$this
->setRedirect($form_state);
}