You are here

public function RequiredContextDelete::getCancelUrl in Chaos Tool Suite (ctools) 8.3

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

src/Form/RequiredContextDelete.php, line 141

Class

RequiredContextDelete
Base class for adding a required contexts step to your wizard.

Namespace

Drupal\ctools\Form

Code

public function getCancelUrl() {
  $cached_values = $this->tempstore
    ->get($this->tempstore_id)
    ->get($this->machine_name);
  list($route_name, $route_parameters) = $this
    ->getParentRouteInfo($cached_values);
  return new Url($route_name, $route_parameters);
}