public function BookRemoveForm::getCancelUrl in Drupal 9
Same name and namespace in other branches
- 8 core/modules/book/src/Form/BookRemoveForm.php \Drupal\book\Form\BookRemoveForm::getCancelUrl()
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
1 call to BookRemoveForm::getCancelUrl()
- BookRemoveForm::submitForm in core/
modules/ book/ src/ Form/ BookRemoveForm.php - Form submission handler.
File
- core/
modules/ book/ src/ Form/ BookRemoveForm.php, line 96
Class
- BookRemoveForm
- Remove form for book module.
Namespace
Drupal\book\FormCode
public function getCancelUrl() {
return $this->node
->toUrl();
}