protected function DefaultMatchingEngine::isEnabled in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php \Drupal\crm_core_match\Plugin\crm_core_match\engine\DefaultMatchingEngine::isEnabled()
- 8.2 modules/crm_core_match/src/Plugin/crm_core_match/engine/DefaultMatchingEngine.php \Drupal\crm_core_match\Plugin\crm_core_match\engine\DefaultMatchingEngine::isEnabled()
A helper function to check if there are enabled field properties.
Parameters
array $properties: An array of field properties.
Return value
bool Returns TRUE if there is at least one enabled property. Otherwise, FALSE.
1 call to DefaultMatchingEngine::isEnabled()
- DefaultMatchingEngine::getRules in modules/
crm_core_match/ src/ Plugin/ crm_core_match/ engine/ DefaultMatchingEngine.php - Gets the rules that are matched.
File
- modules/
crm_core_match/ src/ Plugin/ crm_core_match/ engine/ DefaultMatchingEngine.php, line 418
Class
- DefaultMatchingEngine
- DefaultMatchingEngine class.
Namespace
Drupal\crm_core_match\Plugin\crm_core_match\engineCode
protected function isEnabled(array $properties) {
return (bool) array_filter(array_map(function ($property) {
return $property['status'];
}, $properties));
}