You are here

public function RestClient::setInstanceUrl in Salesforce Suite 8.3

Set the SF instance URL.

Parameters

string $url: The url.

Return value

$this

Overrides RestClientInterface::setInstanceUrl

Deprecated

in 8.x-4.0 and does not have an exact analog, refer to \Drupal\salesforce\SalesforceAuthProviderInterface instead.

File

src/Rest/RestClient.php, line 447

Class

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

Namespace

Drupal\salesforce\Rest

Code

public function setInstanceUrl($url) {
  $this->state
    ->set('salesforce.instance_url', $url);
  return $this;
}