public function SalesforceAuthTokenStorage::hasAccessToken in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Storage/SalesforceAuthTokenStorage.php \Drupal\salesforce\Storage\SalesforceAuthTokenStorage::hasAccessToken()
- 5.0.x src/Storage/SalesforceAuthTokenStorage.php \Drupal\salesforce\Storage\SalesforceAuthTokenStorage::hasAccessToken()
File
- src/
Storage/ SalesforceAuthTokenStorage.php, line 96
Class
- SalesforceAuthTokenStorage
- Salesforce auth token storage.
Namespace
Drupal\salesforce\StorageCode
public function hasAccessToken($service) {
try {
return !empty($this
->retrieveAccessToken($service));
} catch (TokenNotFoundException $e) {
return FALSE;
}
}