You are here

public function BookRemoveForm::getCancelUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 99
Contains \Drupal\book\Form\BookRemoveForm.

Class

BookRemoveForm
Remove form for book module.

Namespace

Drupal\book\Form

Code

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