function 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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.