public function MappedObjectStorage::loadBySfid in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/MappedObjectStorage.php \Drupal\salesforce_mapping\MappedObjectStorage::loadBySfid()
- 5.0.x 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 136
Class
- MappedObjectStorage
- Class MappedObjectStorage.
Namespace
Drupal\salesforce_mappingCode
public function loadBySfid(SFID $salesforce_id) {
return $this
->loadByProperties([
'salesforce_id' => (string) $salesforce_id,
]);
}