public function SalesforceMappingStorage::loadByEntity in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/SalesforceMappingStorage.php \Drupal\salesforce_mapping\SalesforceMappingStorage::loadByEntity()
- 5.0.x modules/salesforce_mapping/src/SalesforceMappingStorage.php \Drupal\salesforce_mapping\SalesforceMappingStorage::loadByEntity()
Pass-through for loadMultipleMapping() including bundle.
File
- modules/
salesforce_mapping/ src/ SalesforceMappingStorage.php, line 27
Class
- SalesforceMappingStorage
- Class MappedObjectStorage.
Namespace
Drupal\salesforce_mappingCode
public function loadByEntity(EntityInterface $entity) {
return $this
->loadByProperties([
'drupal_entity_type' => $entity
->getEntityTypeId(),
'drupal_bundle' => $entity
->bundle(),
]);
}