public function SalesforceMapping::checkTriggers in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::checkTriggers()
- 5.0.x modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::checkTriggers()
Checks if mapping has any of the given triggers.
Parameters
array $triggers: Collection of SALESFORCE_MAPPING_SYNC_* constants from MappingConstants.
Return value
bool TRUE if any of the given $triggers are enabled for this mapping.
Overrides SalesforceMappingInterface::checkTriggers
See also
\Drupal\salesforce_mapping\MappingConstants
2 calls to SalesforceMapping::checkTriggers()
- SalesforceMapping::doesPull in modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php - Checks mappings for any pull operation.
- SalesforceMapping::doesPush in modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php - Checks mappings for any push operation.
File
- modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php, line 483
Class
- SalesforceMapping
- Defines a Salesforce Mapping configuration entity class.
Namespace
Drupal\salesforce_mapping\EntityCode
public function checkTriggers(array $triggers) {
foreach ($triggers as $trigger) {
if (!empty($this->sync_triggers[$trigger])) {
return TRUE;
}
}
return FALSE;
}