function ConfirmFormInterface::getCancelUrl

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getCancelUrl()
  2. 10 core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getCancelUrl()
  3. 8.9.x 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.

3 methods override ConfirmFormInterface::getCancelUrl()
ConfirmFormTestForm::getCancelUrl in core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
Returns the route to go to if the user cancels the action.
LayoutBuilderDisableForm::getCancelUrl in core/modules/layout_builder/src/Form/LayoutBuilderDisableForm.php
Returns the route to go to if the user cancels the action.
WorkspaceMergeForm::getCancelUrl in core/modules/workspaces/src/Form/WorkspaceMergeForm.php
Returns the route to go to if the user cancels the action.

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.