public function OAuth2Manager::setAccessToken in Social API 3.x
Same name and namespace in other branches
- 8.2 src/AuthManager/OAuth2Manager.php \Drupal\social_api\AuthManager\OAuth2Manager::setAccessToken()
Sets the access token.
Parameters
\League\OAuth2\Client\Token\AccessToken|mixed $access_token: The access token.
Return value
$this The current object.
Overrides OAuth2ManagerInterface::setAccessToken
File
- src/
AuthManager/ OAuth2Manager.php, line 102
Class
- OAuth2Manager
- Defines basic OAuth2Manager to be used by social auth and social post.
Namespace
Drupal\social_api\AuthManagerCode
public function setAccessToken($access_token) {
$this->accessToken = $access_token;
return $this;
}