You are here

protected function SuggestionAdminForm::getStopwords in Autocomplete Search Suggestions 8.2

Same name and namespace in other branches
  1. 8 src/Form/SuggestionAdminForm.php \Drupal\suggestion\Form\SuggestionAdminForm::getStopwords()
  2. 3.0.x src/Form/SuggestionAdminForm.php \Drupal\suggestion\Form\SuggestionAdminForm::getStopwords()

Build a list of stopwords.

Return value

string A newline delimited string of stopwords.

1 call to SuggestionAdminForm::getStopwords()
SuggestionAdminForm::buildForm in src/Form/SuggestionAdminForm.php
The suggestion configuration form.

File

src/Form/SuggestionAdminForm.php, line 278

Class

SuggestionAdminForm
Suggestion configuration form.

Namespace

Drupal\suggestion\Form

Code

protected function getStopwords() {
  $stopwords = Helper::getStops('stopwords');
  return $stopwords ? implode("\n", array_keys($stopwords)) : '';
}