You are here

public function OAuth2ManagerInterface::setAccessToken in Social API 3.x

Same name and namespace in other branches
  1. 8.2 src/AuthManager/OAuth2ManagerInterface.php \Drupal\social_api\AuthManager\OAuth2ManagerInterface::setAccessToken()

Sets the access token.

Parameters

\League\OAuth2\Client\Token\AccessToken|mixed $access_token: The access token.

Return value

$this The current object.

1 method overrides OAuth2ManagerInterface::setAccessToken()
OAuth2Manager::setAccessToken in src/AuthManager/OAuth2Manager.php
Sets the access token.

File

src/AuthManager/OAuth2ManagerInterface.php, line 53

Class

OAuth2ManagerInterface
Defines an OAuth2Manager Interface.

Namespace

Drupal\social_api\AuthManager

Code

public function setAccessToken($access_token);