public function SalesforceAuthTokenStorage::hasIdentity in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/Storage/SalesforceAuthTokenStorage.php \Drupal\salesforce\Storage\SalesforceAuthTokenStorage::hasIdentity()
- 8.3 src/Storage/SalesforceAuthTokenStorage.php \Drupal\salesforce\Storage\SalesforceAuthTokenStorage::hasIdentity()
Return boolean indicating whether this service has an identity.
Return value
bool TRUE if the service has an identity.
Overrides SalesforceAuthTokenStorageInterface::hasIdentity
File
- src/
Storage/ SalesforceAuthTokenStorage.php, line 170
Class
- SalesforceAuthTokenStorage
- Salesforce auth token storage.
Namespace
Drupal\salesforce\StorageCode
public function hasIdentity($service) {
return !empty($this
->retrieveIdentity($service));
}