public static function SalesforceIdentity::create in Salesforce Suite 8.4
Same name and namespace in other branches
- 5.0.x src/Rest/SalesforceIdentity.php \Drupal\salesforce\Rest\SalesforceIdentity::create()
Static creation method.
Parameters
array $data: Data array.
Return value
\Drupal\salesforce\Rest\SalesforceIdentity New identity.
Throws
\OAuth\Common\Http\Exception\TokenResponseException
1 call to SalesforceIdentity::create()
- SalesforceAuthTokenStorage::retrieveIdentity in src/
Storage/ SalesforceAuthTokenStorage.php - Identity for the given service.
File
- src/
Rest/ SalesforceIdentity.php, line 43
Class
Namespace
Drupal\salesforce\RestCode
public static function create(array $data) {
return new static(json_encode($data));
}