You are here

public function RestClient::setIdentity in Salesforce Suite 8.3

Same name in this branch
  1. 8.3 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::setIdentity()
  2. 8.3 modules/salesforce_encrypt/src/Rest/RestClient.php \Drupal\salesforce_encrypt\Rest\RestClient::setIdentity()

Set the Salesforce identity, which is stored in a variable.

Overrides RestClientInterface::setIdentity

Deprecated

in 8.x-4.0, use \Drupal\salesforce\Storage\SalesforceAuthTokenStorageInterface::storeIdentity instead.

2 calls to RestClient::setIdentity()
RestClient::initializeIdentity in src/Rest/RestClient.php
Retrieve and store the Salesforce identity given an ID url.
RestClient::setIdentity in modules/salesforce_encrypt/src/Rest/RestClient.php
Set the Salesforce identity, which is stored in a variable.
1 method overrides RestClient::setIdentity()
RestClient::setIdentity in modules/salesforce_encrypt/src/Rest/RestClient.php
Set the Salesforce identity, which is stored in a variable.

File

src/Rest/RestClient.php, line 556

Class

RestClient
Objects, properties, and methods to communicate with the Salesforce REST API.

Namespace

Drupal\salesforce\Rest

Code

public function setIdentity($data) {
  $this->state
    ->set('salesforce.identity', $data);
  $this
    ->storage()
    ->updateIdentity();
  return $this;
}