You are here

public function SalesforceAuthProviderPluginBase::hasAccessToken in Salesforce Suite 8.4

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

TRUE if the connection has a token, regardless of validity.

Return value

bool TRUE if the connection has a token, regardless of validity.

Overrides SalesforceAuthProviderInterface::hasAccessToken

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

File

src/SalesforceAuthProviderPluginBase.php, line 261

Class

SalesforceAuthProviderPluginBase
Shared methods for auth providers.

Namespace

Drupal\salesforce

Code

public function hasAccessToken() {
  return $this->storage ? $this->storage
    ->hasAccessToken($this
    ->id()) : FALSE;
}