public function NameAutocomplete::mapAssoc in Name Field 8
Helper function to combine values.
Parameters
array $values: Array values to combine.
Return value
array Combined array values.
1 call to NameAutocomplete::mapAssoc()
- NameAutocomplete::getMatches in src/
NameAutocomplete.php - Get matches for the autocompletion of name components.
File
- src/
NameAutocomplete.php, line 185
Class
- NameAutocomplete
- Defines a helper class to get name field autocompletion results.
Namespace
Drupal\nameCode
public function mapAssoc(array $values) {
return array_combine($values, $values);
}