public function AuthManager::getRedirectUrl in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_extra/src/AuthManager.php \Drupal\social_auth_extra\AuthManager::getRedirectUrl()
- 8 modules/custom/social_auth_extra/src/AuthManager.php \Drupal\social_auth_extra\AuthManager::getRedirectUrl()
- 8.2 modules/custom/social_auth_extra/src/AuthManager.php \Drupal\social_auth_extra\AuthManager::getRedirectUrl()
- 8.3 modules/custom/social_auth_extra/src/AuthManager.php \Drupal\social_auth_extra\AuthManager::getRedirectUrl()
- 8.4 modules/custom/social_auth_extra/src/AuthManager.php \Drupal\social_auth_extra\AuthManager::getRedirectUrl()
- 8.5 modules/custom/social_auth_extra/src/AuthManager.php \Drupal\social_auth_extra\AuthManager::getRedirectUrl()
- 8.6 modules/custom/social_auth_extra/src/AuthManager.php \Drupal\social_auth_extra\AuthManager::getRedirectUrl()
- 8.7 modules/custom/social_auth_extra/src/AuthManager.php \Drupal\social_auth_extra\AuthManager::getRedirectUrl()
Returns URL to authorize/registration depending on type.
Parameters
string $type: Type of action. "login" or "register".
Return value
\Drupal\Core\GeneratedUrl|string A generated URL or a string containing an URL.
Overrides AuthManagerInterface::getRedirectUrl
7 calls to AuthManager::getRedirectUrl()
- FacebookAuthManager::getAccessToken in modules/
custom/ social_auth_facebook/ src/ FacebookAuthManager.php - Reads user's access token from social network.
- FacebookAuthManager::getAuthenticationUrl in modules/
custom/ social_auth_facebook/ src/ FacebookAuthManager.php - Returns the login URL where user will be redirected for authentication.
- GoogleAuthManager::getAccessToken in modules/
custom/ social_auth_google/ src/ GoogleAuthManager.php - Reads user's access token from social network.
- GoogleAuthManager::getAuthenticationUrl in modules/
custom/ social_auth_google/ src/ GoogleAuthManager.php - Returns the login URL where user will be redirected for authentication.
- LinkedInAuthManager::getAccessToken in modules/
custom/ social_auth_linkedin/ src/ LinkedInAuthManager.php - Reads user's access token from social network.
File
- modules/
custom/ social_auth_extra/ src/ AuthManager.php, line 54
Class
- AuthManager
- Class AuthManager.
Namespace
Drupal\social_auth_extraCode
public function getRedirectUrl($type) {
$key = $this
->getSocialNetworkKey();
return $this->urlGenerator
->generateFromRoute("social_auth_{$key}.user_{$type}_callback", [], [
'absolute' => TRUE,
]);
}