protected function SuggestionAdminForm::getAutocomplete in Autocomplete Search Suggestions 3.0.x
Same name and namespace in other branches
- 8.2 src/Form/SuggestionAdminForm.php \Drupal\suggestion\Form\SuggestionAdminForm::getAutocomplete()
- 8 src/Form/SuggestionAdminForm.php \Drupal\suggestion\Form\SuggestionAdminForm::getAutocomplete()
Build an autocomplete form ID to field name hash.
Return value
string A colon delimited list of form_id to field name.
1 call to SuggestionAdminForm::getAutocomplete()
- SuggestionAdminForm::buildForm in src/
Form/ SuggestionAdminForm.php - The suggestion configuration form.
File
- src/
Form/ SuggestionAdminForm.php, line 227
Class
- SuggestionAdminForm
- Suggestion configuration form.
Namespace
Drupal\suggestion\FormCode
protected function getAutocomplete() {
$txt = '';
foreach ((array) SuggestionHelper::getConfig('autocomplete') as $key => $val) {
$txt .= "{$key}:{$val}\n";
}
return $txt;
}