You are here

public function ConfigEntityRevisionsRevertFormBase::submitForm in Config Entity Revisions 1.x

Same name and namespace in other branches
  1. 8.2 src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::submitForm()
  2. 8 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_revisions

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->applyRevisionChange();
  $this
    ->updateConfigEntity();
  $this
    ->logUpdate();
  $this
    ->displayUpdate();
  $this
    ->setRedirect($form_state);
}