You are here

public function CustomFilterRulesDeleteForm::getCancelUrl in Custom filter 8

Same name and namespace in other branches
  1. 2.0.x src/Form/CustomFilterRulesDeleteForm.php \Drupal\customfilter\Form\CustomFilterRulesDeleteForm::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/CustomFilterRulesDeleteForm.php, line 52

Class

CustomFilterRulesDeleteForm
Builds the form to delete a Custom Filter.

Namespace

Drupal\customfilter\Form

Code

public function getCancelUrl() {
  return new Url('customfilter.rules.list', array(
    'customfilter' => $this->customfilter
      ->id(),
  ));
}