You are here

public function MappedObjectStorage::loadBySfid in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/MappedObjectStorage.php \Drupal\salesforce_mapping\MappedObjectStorage::loadBySfid()
  2. 8.3 modules/salesforce_mapping/src/MappedObjectStorage.php \Drupal\salesforce_mapping\MappedObjectStorage::loadBySfid()

Load MappedObjects by Salesforce ID.

Parameters

\Drupal\salesforce\SFID $salesforce_id: Salesforce id.

Return value

\Drupal\salesforce_mapping\Entity\MappedObjectInterface[] Matching mapped objects.

See also

loadByProperties()

File

modules/salesforce_mapping/src/MappedObjectStorage.php, line 90

Class

MappedObjectStorage
Class MappedObjectStorage.

Namespace

Drupal\salesforce_mapping

Code

public function loadBySfid(SFID $salesforce_id) {
  return $this
    ->loadByProperties([
    'salesforce_id' => (string) $salesforce_id,
  ]);
}