You are here

protected function SuggestionAdminForm::getAutocomplete in Autocomplete Search Suggestions 3.0.x

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

Code

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