protected function SuggestionAdminForm::getKeywords in Autocomplete Search Suggestions 3.0.x
Same name and namespace in other branches
- 8.2 src/Form/SuggestionAdminForm.php \Drupal\suggestion\Form\SuggestionAdminForm::getKeywords()
- 8 src/Form/SuggestionAdminForm.php \Drupal\suggestion\Form\SuggestionAdminForm::getKeywords()
Build a list of priority suggestions.
Return value
string A newline delimited string of priority ngrams.
1 call to SuggestionAdminForm::getKeywords()
- SuggestionAdminForm::buildForm in src/
Form/ SuggestionAdminForm.php - The suggestion configuration form.
File
- src/
Form/ SuggestionAdminForm.php, line 257
Class
- SuggestionAdminForm
- Suggestion configuration form.
Namespace
Drupal\suggestion\FormCode
protected function getKeywords() {
$keywords = SuggestionStorage::getKeywords();
return !empty($keywords) ? implode("\n", $keywords) : '';
}