function ConditionDelete::getCancelUrl

Same name in other branches
  1. 4.0.x src/Form/ConditionDelete.php \Drupal\ctools\Form\ConditionDelete::getCancelUrl()

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/ConditionDelete.php, line 170

Class

ConditionDelete
Delete Condition Confirmation Form.

Namespace

Drupal\ctools\Form

Code

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);
}