protected function CrmCoreUserSyncRelationRules::weightCmp in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_user_sync/src/CrmCoreUserSyncRelationRules.php \Drupal\crm_core_user_sync\CrmCoreUserSyncRelationRules::weightCmp()
Rules weight comparison function.
File
- modules/
crm_core_user_sync/ src/ CrmCoreUserSyncRelationRules.php, line 59
Class
- CrmCoreUserSyncRelationRules
- CrmCoreUserSyncRelation service.
Namespace
Drupal\crm_core_user_syncCode
protected function weightCmp(array $a, array $b) {
if ($a['weight'] == $b['weight']) {
return 0;
}
return $a['weight'] < $b['weight'] ? -1 : 1;
}