function ConfirmFormInterface::getCancelUrl

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getCancelUrl()
  2. 8.9.x core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getCancelUrl()
  3. 10 core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

42 methods override ConfirmFormInterface::getCancelUrl()
BanDelete::getCancelUrl in core/modules/ban/src/Form/BanDelete.php
BookRemoveForm::getCancelUrl in core/modules/book/src/Form/BookRemoveForm.php
Returns the route to go to if the user cancels the action.
BreakLockForm::getCancelUrl in core/modules/views_ui/src/Form/BreakLockForm.php
ConfigSingleImportForm::getCancelUrl in core/modules/config/src/Form/ConfigSingleImportForm.php
ConfigTranslationDeleteForm::getCancelUrl in core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php

... See full list

File

core/lib/Drupal/Core/Form/ConfirmFormInterface.php, line 24

Class

ConfirmFormInterface
Defines the behavior a confirmation form.

Namespace

Drupal\Core\Form

Code

public function getCancelUrl();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.