You are here

protected function SuggestionAdminForm::getKeywords in Autocomplete Search Suggestions 8

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

Code

protected function getKeywords() {
  $keywords = SuggestionStorage::getKeywords();
  return !empty($keywords) ? implode("\n", $keywords) : '';
}