public function GoogleAuthManager::setAccessToken in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setAccessToken()
- 8 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setAccessToken()
- 8.2 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setAccessToken()
- 8.3 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setAccessToken()
- 8.4 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setAccessToken()
- 8.5 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setAccessToken()
- 8.7 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setAccessToken()
- 8.8 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setAccessToken()
Set access token to AuthManager to use it for API calls.
Parameters
mixed $access_token: Access token to use in API calls.
Return value
null Returns null.
Overrides AuthManagerInterface::setAccessToken
File
- modules/
custom/ social_auth_google/ src/ GoogleAuthManager.php, line 83
Class
- GoogleAuthManager
- Class GoogleAuthManager.
Namespace
Drupal\social_auth_googleCode
public function setAccessToken($access_token) {
$this->sdk
->setAccessToken($access_token);
}