function FormWizardBase::ajaxPrevious

Same name and namespace in other branches
  1. 8.x-3.x src/Wizard/FormWizardBase.php \Drupal\ctools\Wizard\FormWizardBase::ajaxPrevious()

Overrides FormWizardInterface::ajaxPrevious

File

src/Wizard/FormWizardBase.php, line 460

Class

FormWizardBase
The base class for all form wizard.

Namespace

Drupal\ctools\Wizard

Code

public function ajaxPrevious(array $form, FormStateInterface $form_state) {
  $cached_values = $form_state->getTemporaryValue('wizard');
  $response = new AjaxResponse();
  $parameters = $this->getPreviousParameters($cached_values);
  $response->addCommand(new OpenModalWizardCommand($this, $this->getTempstoreId(), $parameters));
  return $response;
}