You are here

public function AuthUnlinkForm::getCancelUrl in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php \Drupal\social_auth_extra\Form\AuthUnlinkForm::getCancelUrl()
  2. 8.2 modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php \Drupal\social_auth_extra\Form\AuthUnlinkForm::getCancelUrl()
  3. 8.3 modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php \Drupal\social_auth_extra\Form\AuthUnlinkForm::getCancelUrl()
  4. 8.4 modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php \Drupal\social_auth_extra\Form\AuthUnlinkForm::getCancelUrl()
  5. 8.5 modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php \Drupal\social_auth_extra\Form\AuthUnlinkForm::getCancelUrl()
  6. 8.6 modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php \Drupal\social_auth_extra\Form\AuthUnlinkForm::getCancelUrl()
  7. 8.7 modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php \Drupal\social_auth_extra\Form\AuthUnlinkForm::getCancelUrl()
  8. 8.8 modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php \Drupal\social_auth_extra\Form\AuthUnlinkForm::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

modules/custom/social_auth_extra/src/Form/AuthUnlinkForm.php, line 59

Class

AuthUnlinkForm
Class AuthUnlinkForm.

Namespace

Drupal\social_auth_extra\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('entity.user.edit_form', [
    'user' => $this
      ->currentUser()
      ->id(),
  ]);
}