You are here

public function LinkedInAuthManager::setAccessToken in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::setAccessToken()
  2. 8 modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::setAccessToken()
  3. 8.2 modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::setAccessToken()
  4. 8.3 modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::setAccessToken()
  5. 8.4 modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::setAccessToken()
  6. 8.5 modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::setAccessToken()
  7. 8.7 modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::setAccessToken()
  8. 8.8 modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::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_linkedin/src/LinkedInAuthManager.php, line 100

Class

LinkedInAuthManager
Class LinkedInAuthManager.

Namespace

Drupal\social_auth_linkedin

Code

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