public static function SuggestionHelper::getStops in Autocomplete Search Suggestions 8
Same name and namespace in other branches
- 8.2 src/SuggestionHelper.php \Drupal\suggestion\SuggestionHelper::getStops()
- 3.0.x src/SuggestionHelper.php \Drupal\suggestion\SuggestionHelper::getStops()
Stopword get wrapper.
Parameters
string $key: The field name.
Return value
mixed The value of the supplied field.
3 calls to SuggestionHelper::getStops()
- SuggestionAdminForm::getStopwords in src/
Form/ SuggestionAdminForm.php - Build a list of stopwords.
- SuggestionAdminForm::setStopwords in src/
Form/ SuggestionAdminForm.php - Process all the stopwords submitted.
- SuggestionHelper::atomize in src/
SuggestionHelper.php - Transform a string to an array.
File
- src/
SuggestionHelper.php, line 120
Class
- SuggestionHelper
- Provides helper methods for suggestions.
Namespace
Drupal\suggestionCode
public static function getStops($key = '') {
$cfg =& drupal_static(__CLASS__ . '_' . __FUNCTION__, \Drupal::configFactory()
->get('suggestion.stopword'));
return $key ? $cfg
->get($key) : (object) $cfg
->get();
}