You are here

public function SalesforceMappingStorage::loadPushMappings 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::loadPushMappings()
  2. 8.3 modules/salesforce_mapping/src/SalesforceMappingStorage.php \Drupal\salesforce_mapping\SalesforceMappingStorage::loadPushMappings()

Return an array of SalesforceMapping entities who are push-enabled.

Parameters

string $entity_type_id: The entity type id. If given, filter the mappings by only this type.

Return value

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

File

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

Class

SalesforceMappingStorage
Class MappedObjectStorage.

Namespace

Drupal\salesforce_mapping

Code

public function loadPushMappings($entity_type_id = NULL) {
  $properties = empty($entity_type_id) ? [] : [
    "drupal_entity_type" => $entity_type_id,
  ];
  return $this
    ->loadPushMappingsByProperties($properties);
}