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
Namespace
Drupal\page_manager_ui\WizardCode
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;
}