You are here

public function DblogClearLogConfirmForm::getCancelUrl in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/dblog/src/Form/DblogClearLogConfirmForm.php \Drupal\dblog\Form\DblogClearLogConfirmForm::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 DblogClearLogConfirmForm::getCancelUrl()
DblogClearLogConfirmForm::submitForm in core/modules/dblog/src/Form/DblogClearLogConfirmForm.php
Form submission handler.

File

core/modules/dblog/src/Form/DblogClearLogConfirmForm.php, line 61

Class

DblogClearLogConfirmForm
Provides a confirmation form before clearing out the logs.

Namespace

Drupal\dblog\Form

Code

public function getCancelUrl() {
  return new Url('dblog.overview');
}