You are here

public function SalesforceMappingStorage::loadByEntity in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/SalesforceMappingStorage.php \Drupal\salesforce_mapping\SalesforceMappingStorage::loadByEntity()
  2. 8.3 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_mapping

Code

public function loadByEntity(EntityInterface $entity) {
  return $this
    ->loadByProperties([
    'drupal_entity_type' => $entity
      ->getEntityTypeId(),
    'drupal_bundle' => $entity
      ->bundle(),
  ]);
}