You are here

public function SalesforceAuthProviderPluginBase::getAccessToken in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::getAccessToken()
  2. 5.0.x src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::getAccessToken()

Access token for this plugin.

Return value

\OAuth\OAuth2\Token\TokenInterface The Token.

Throws

\OAuth\Common\Storage\Exception\TokenNotFoundException

Overrides SalesforceAuthProviderInterface::getAccessToken

1 call to SalesforceAuthProviderPluginBase::getAccessToken()
SalesforceAuthProviderPluginBase::save in src/SalesforceAuthProviderPluginBase.php
Callback for configuration form after saving config entity.

File

src/SalesforceAuthProviderPluginBase.php, line 268

Class

SalesforceAuthProviderPluginBase
Shared methods for auth providers.

Namespace

Drupal\salesforce

Code

public function getAccessToken() {
  return $this->storage
    ->retrieveAccessToken($this
    ->id());
}