You are here

public function ScopeDeleteConfirmForm::getCancelUrl in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/Form/ScopeDeleteConfirmForm.php \Drupal\oauth2_server\Form\ScopeDeleteConfirmForm::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/ScopeDeleteConfirmForm.php, line 33

Class

ScopeDeleteConfirmForm
Class Scope Delete Confirm Form.

Namespace

Drupal\oauth2_server\Form

Code

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