You are here

public function SalesforceAuthProviderPluginBase::revokeAccessToken in Salesforce Suite 8.4

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

Clear the access token for this auth provider plugin.

Return value

$this

Overrides SalesforceAuthProviderInterface::revokeAccessToken

File

src/SalesforceAuthProviderPluginBase.php, line 275

Class

SalesforceAuthProviderPluginBase
Shared methods for auth providers.

Namespace

Drupal\salesforce

Code

public function revokeAccessToken() {
  return $this->storage
    ->clearToken($this
    ->id());
}