You are here

public function RestClient::setConsumerSecret in Salesforce Suite 8.3

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

Consumer key setter.

Parameters

string $value: Consumer secret value.

Return value

$this

Overrides RestClientInterface::setConsumerSecret

Deprecated

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

1 call to RestClient::setConsumerSecret()
RestClient::setConsumerSecret in modules/salesforce_encrypt/src/Rest/RestClient.php
Consumer key setter.
1 method overrides RestClient::setConsumerSecret()
RestClient::setConsumerSecret in modules/salesforce_encrypt/src/Rest/RestClient.php
Consumer key setter.

File

src/Rest/RestClient.php, line 414

Class

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

Namespace

Drupal\salesforce\Rest

Code

public function setConsumerSecret($value) {
  $this->mutableConfig
    ->set('consumer_secret', $value)
    ->save();
  SalesforceAuthProviderPluginManager::updateAuthConfig();
  return $this;
}