You are here

public function ClientDeleteConfirmForm::getCancelUrl in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/Form/ClientDeleteConfirmForm.php \Drupal\oauth2_server\Form\ClientDeleteConfirmForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

src/Form/ClientDeleteConfirmForm.php, line 33

Class

ClientDeleteConfirmForm
Class Client Delete Confirm Form.

Namespace

Drupal\oauth2_server\Form

Code

public function getCancelUrl() {
  return new Url('entity.oauth2_server.clients', [
    'oauth2_server' => $this->entity->server_id,
  ]);
}