private function RedhenDedupeMergeForm::redhenDedupeFieldIsMultivalue in RedHen CRM 8
Determine if a property should be merged via checkboxes instead of radios.
1 call to RedhenDedupeMergeForm::redhenDedupeFieldIsMultivalue()
- RedhenDedupeMergeForm::buildForm in modules/
redhen_dedupe/ src/ Form/ RedhenDedupeMergeForm.php - Form constructor.
File
- modules/
redhen_dedupe/ src/ Form/ RedhenDedupeMergeForm.php, line 327
Class
- RedhenDedupeMergeForm
- Form controller for Dedupe merge tool.
Namespace
Drupal\redhen_dedupe\FormCode
private function redhenDedupeFieldIsMultivalue($field) {
$cardinality = $field
->getFieldStorageDefinition()
->getCardinality();
if ($cardinality != 1) {
return $cardinality;
}
else {
return FALSE;
}
}