You are here

public function SalesforceMapping::doesPush in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::doesPush()
  2. 8.3 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::doesPush()

Checks mappings for any push operation.

Return value

bool TRUE if this mapping is configured to push.

Overrides SalesforceMappingInterface::doesPush

1 call to SalesforceMapping::doesPush()
SalesforceMapping::calculateDependencies in modules/salesforce_mapping/src/Entity/SalesforceMapping.php
Calculates dependencies and stores them in the dependency property.

File

modules/salesforce_mapping/src/Entity/SalesforceMapping.php, line 523

Class

SalesforceMapping
Defines a Salesforce Mapping configuration entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

public function doesPush() {
  return $this
    ->checkTriggers([
    MappingConstants::SALESFORCE_MAPPING_SYNC_DRUPAL_CREATE,
    MappingConstants::SALESFORCE_MAPPING_SYNC_DRUPAL_UPDATE,
    MappingConstants::SALESFORCE_MAPPING_SYNC_DRUPAL_DELETE,
  ]);
}