protected function WebformCivicrmBase::handleRemainingValues in Webform CiviCRM Integration 8.5
Put remaining values in 'user-select' fields
Parameters
array $reorderedArray:
array $values:
Return value
array $reorderedArray
1 call to WebformCivicrmBase::handleRemainingValues()
- WebformCivicrmBase::reorderByLocationType in src/
WebformCivicrmBase.php - Reorder returned results according to settings chosen in wf_civicrm backend
File
- src/
WebformCivicrmBase.php, line 459 - Front-end form handler base class.
Class
- WebformCivicrmBase
- Class WebformCivicrmBase
Namespace
Drupal\webform_civicrmCode
protected function handleRemainingValues($reorderedArray, &$values) {
// Put leftover values in fields marked as 'user-select'
foreach ($reorderedArray as $key => $value) {
if ($reorderedArray[$key] == 'user-select') {
$reorderedArray[$key] = !empty($values) ? array_shift($values) : '';
}
}
return $reorderedArray;
}