You are here

public function RestClientInterface::setApiVersion in Salesforce Suite 8.3

Setter for config salesforce.settings rest_api_version and use_latest.

Parameters

bool $use_latest: Use the latest version, instead of an explicit version number.

int $version: The explicit version number. Mutually exclusive with $use_latest.

Throws

\Exception

\GuzzleHttp\Exception\RequestException

Deprecated

in 8.x-4.0 and does not have an exact analog, refer to \Drupal::config('salesforce.settings')->set('rest_api_version.version') instead.

1 method overrides RestClientInterface::setApiVersion()
RestClient::setApiVersion in src/Rest/RestClient.php
Setter for config salesforce.settings rest_api_version and use_latest.

File

src/Rest/RestClientInterface.php, line 145

Class

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

Namespace

Drupal\salesforce\Rest

Code

public function setApiVersion($use_latest = TRUE, $version = NULL);