You are here

public function BookRemoveForm::getCancelUrl in Drupal 8

Same name and namespace in other branches
  1. 9 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\Form

Code

public function getCancelUrl() {
  return $this->node
    ->toUrl();
}