You are here

public function RouteParameters::ajaxFinish in Page Manager 8

Overrides FormWizardBase::ajaxFinish

File

page_manager_ui/src/Wizard/RouteParameters.php, line 78
Contains \Drupal\page_manager_ui\Wizard\RouteParameters.

Class

RouteParameters

Namespace

Drupal\page_manager_ui\Wizard

Code

public function ajaxFinish(array $form, FormStateInterface $form_state) {
  $cached_values = $form_state
    ->getTemporaryValue('wizard');
  $response = new AjaxResponse();
  $response
    ->addCommand(new RedirectCommand($this
    ->url('entity.page.edit_form', [
    'machine_name' => $cached_values['id'],
    'step' => 'parameters',
  ])));
  $response
    ->addCommand(new CloseModalDialogCommand());
  return $response;
}