You are here

protected function SuggestionAdminForm::getAutocomplete in Autocomplete Search Suggestions 8.2

Same name and namespace in other branches
  1. 8 src/Form/SuggestionAdminForm.php \Drupal\suggestion\Form\SuggestionAdminForm::getAutocomplete()
  2. 3.0.x 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 233

Class

SuggestionAdminForm
Suggestion configuration form.

Namespace

Drupal\suggestion\Form

Code

protected function getAutocomplete() {
  $txt = '';
  foreach ((array) Helper::getConfig('autocomplete') as $key => $val) {
    $txt .= "{$key}:{$val}\n";
  }
  return $txt;
}