function RequiredContextDelete::getCancelUrl
Same name in other branches
- 8.x-3.x src/Form/RequiredContextDelete.php \Drupal\ctools\Form\RequiredContextDelete::getCancelUrl()
Overrides ConfirmFormInterface::getCancelUrl
File
-
src/
Form/ RequiredContextDelete.php, line 154
Class
- RequiredContextDelete
- Base class for adding a required contexts step to your wizard.
Namespace
Drupal\ctools\FormCode
public function getCancelUrl() {
$cached_values = $this->tempstore
->get($this->tempstore_id)
->get($this->machine_name);
[
$route_name,
$route_parameters,
] = $this->getParentRouteInfo($cached_values);
return new Url($route_name, $route_parameters);
}