function ConfirmFormInterface::getCancelUrl
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getCancelUrl()
- 10 core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getCancelUrl()
- 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\FormCode
public function getCancelUrl();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.