Skip to content
Snippets Groups Projects
Commit 85c17e4f authored by Aaron Bauman's avatar Aaron Bauman
Browse files

- limit push by bundle

parent 9f11aac6
No related branches found
No related tags found
No related merge requests found
...@@ -59,9 +59,14 @@ function salesforce_push_entity_crud(EntityInterface $entity, $op) { ...@@ -59,9 +59,14 @@ function salesforce_push_entity_crud(EntityInterface $entity, $op) {
return; return;
} }
$properties = empty($entity->getEntityTypeId()) $properties = [];
? []
: ["drupal_entity_type" => $entity->getEntityTypeId()]; if ($entity_type = $entity->getEntityTypeId()) {
$properties['drupal_entity_type'] = $entity_type;
}
if ($bundle = $entity->getEntityTypeId()) {
$properties['drupal_bundle'] = $bundle;
}
$mappings = \Drupal::service('entity.manager') $mappings = \Drupal::service('entity.manager')
->getStorage('salesforce_mapping') ->getStorage('salesforce_mapping')
->loadPushMappingsByProperties($properties); ->loadPushMappingsByProperties($properties);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment