You are here

public function UserIdentityDelete::getCancelUrl in uLogin (advanced version) 8

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/UserIdentityDelete.php, line 35

Class

UserIdentityDelete
User Identity Delete form.

Namespace

Drupal\ulogin\Form

Code

public function getCancelUrl() {
  return new Url('ulogin.user', [
    'uid' => \Drupal::currentUser()
      ->id(),
  ]);
}