You are here

public function PageEditWizard::submitForm in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Wizard/PageEditWizard.php \Drupal\page_manager_ui\Wizard\PageEditWizard::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 FormWizardBase::submitForm

File

page_manager_ui/src/Wizard/PageEditWizard.php, line 280
Contains \Drupal\page_manager_ui\Wizard\PageEditWizard.

Class

PageEditWizard

Namespace

Drupal\page_manager_ui\Wizard

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $cached_values = $form_state
    ->getTemporaryValue('wizard');

  // Normally, the wizard only saves the data when the 'Next' button is
  // clicked, but we want to save the data always when editing.
  $this
    ->getTempstore()
    ->set($this
    ->getMachineName(), $cached_values);
}