You are here

public function MappedObject::client in Salesforce Suite 8.4

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

Wrapper for salesforce.client service.

Return value

\Drupal\salesforce\Rest\RestClientInterface The service.

Overrides MappedObjectInterface::client

File

modules/salesforce_mapping/src/Entity/MappedObject.php, line 346

Class

MappedObject
Defines a Salesforce Mapped Object entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

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