public function SalesforceMappingStorage::loadPushMappingsByProperties in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/SalesforceMappingStorage.php \Drupal\salesforce_mapping\SalesforceMappingStorage::loadPushMappingsByProperties()
- 5.0.x modules/salesforce_mapping/src/SalesforceMappingStorage.php \Drupal\salesforce_mapping\SalesforceMappingStorage::loadPushMappingsByProperties()
Return an array push-enabled mappings by properties.
Parameters
array $properties: Properties array for storage handler.
Return value
\Drupal\salesforce_mapping\Entity\SalesforceMappingInterface[] The push mappings.
See also
::loadByProperties()
2 calls to SalesforceMappingStorage::loadPushMappingsByProperties()
- SalesforceMappingStorage::loadCronPushMappings in modules/
salesforce_mapping/ src/ SalesforceMappingStorage.php - Get push Mappings to be processed during cron.
- SalesforceMappingStorage::loadPushMappings in modules/
salesforce_mapping/ src/ SalesforceMappingStorage.php - Return an array of SalesforceMapping entities who are push-enabled.
File
- modules/
salesforce_mapping/ src/ SalesforceMappingStorage.php, line 143
Class
- SalesforceMappingStorage
- Class MappedObjectStorage.
Namespace
Drupal\salesforce_mappingCode
public function loadPushMappingsByProperties(array $properties) {
$mappings = $this
->loadByProperties($properties);
foreach ($mappings as $key => $mapping) {
if (!$mapping
->doesPush()) {
continue;
}
$push_mappings[$key] = $mapping;
}
if (empty($push_mappings)) {
return [];
}
return $push_mappings;
}