You are here

protected function SalesforceMapping::client in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::client()
  2. 5.0.x modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::client()

Salesforce API client service.

Return value

\Drupal\salesforce\Rest\RestClient The salesforce.client service.

File

modules/salesforce_mapping/src/Entity/SalesforceMapping.php, line 716

Class

SalesforceMapping
Defines a Salesforce Mapping configuration entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

protected function client() {
  return \Drupal::service('salesforce.client');
}