public function RestClient::getIdentity in Salesforce Suite 8.3
Same name in this branch
- 8.3 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::getIdentity()
- 8.3 modules/salesforce_encrypt/src/Rest/RestClient.php \Drupal\salesforce_encrypt\Rest\RestClient::getIdentity()
Return the Salesforce identity, which is stored in a variable.
Return value
array|FALSE Returns FALSE is no identity has been stored.
Overrides RestClient::getIdentity
Deprecated
in 8.x-4.0, use \Drupal\salesforce\Storage\SalesforceAuthTokenStorageInterface::retrieveIdentity instead.
1 call to RestClient::getIdentity()
- RestClient::setEncryption in modules/
salesforce_encrypt/ src/ Rest/ RestClient.php - Set the given encryption profile as active.
File
- modules/
salesforce_encrypt/ src/ Rest/ RestClient.php, line 267
Class
- RestClient
- Objects, properties, and methods to communicate with the Salesforce REST API.
Namespace
Drupal\salesforce_encrypt\RestCode
public function getIdentity() {
$data = $this
->decrypt(parent::getIdentity());
if (!empty($data) && !is_array($data)) {
$data = unserialize($data);
}
return $data;
}