You are here

public function SalesforceMappingStorage::loadCronPullMappings in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/SalesforceMappingStorage.php \Drupal\salesforce_mapping\SalesforceMappingStorage::loadCronPullMappings()
  2. 5.0.x modules/salesforce_mapping/src/SalesforceMappingStorage.php \Drupal\salesforce_mapping\SalesforceMappingStorage::loadCronPullMappings()

Get pull Mappings to be processed during cron.

Return value

\Drupal\salesforce_mapping\Entity\SalesforceMappingInterface[] The pull Mappings.

File

modules/salesforce_mapping/src/SalesforceMappingStorage.php, line 125

Class

SalesforceMappingStorage
Class MappedObjectStorage.

Namespace

Drupal\salesforce_mapping

Code

public function loadCronPullMappings() {
  if ($this->configFactory
    ->get('salesforce.settings')
    ->get('standalone')) {
    return [];
  }
  return $this
    ->loadPullMappingsByProperties([
    "pull_standalone" => FALSE,
  ]);
}