public function ConditionConfigure::ajaxSave in Chaos Tool Suite (ctools) 8.3
File
- src/
Form/ ConditionConfigure.php, line 133
Class
- ConditionConfigure
- Base class for condition configur operations.
Namespace
Drupal\ctools\FormCode
public function ajaxSave(array &$form, FormStateInterface $form_state) {
$response = new AjaxResponse();
$cached_values = $this->tempstore
->get($this->tempstore_id)
->get($this->machine_name);
list($route_name, $route_parameters) = $this
->getParentRouteInfo($cached_values);
$url = Url::fromRoute($route_name, $route_parameters);
$response
->addCommand(new RedirectCommand($url
->toString()));
$response
->addCommand(new CloseModalDialogCommand());
return $response;
}