You are here

public function GoogleAuthManager::setAccessToken in Open Social 8

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

Code

public function setAccessToken($access_token) {
  $this->sdk
    ->setAccessToken($access_token);
}