You are here

public function AdvbanDelete::getCancelUrl in Advanced ban 8

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 AdvbanDelete::getCancelUrl()
AdvbanDelete::submitForm in src/Form/AdvbanDelete.php
Form submission handler.

File

src/Form/AdvbanDelete.php, line 82

Class

AdvbanDelete
Provides a form to unban IP addresses.

Namespace

Drupal\advban\Form

Code

public function getCancelUrl() {
  return new Url('advban.admin_page');
}