You are here

protected function Stopwords::getStopWords in Search API 8

Gets the stopwords for this processor.

Return value

string[] An array whose keys and values are the stopwords set for this processor.

1 call to Stopwords::getStopWords()
Stopwords::process in src/Plugin/search_api/processor/Stopwords.php
Processes a single string value.

File

src/Plugin/search_api/processor/Stopwords.php, line 145

Class

Stopwords
Allows you to define stopwords which will be ignored in searches.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

protected function getStopWords() {
  if (!isset($this->stopwords)) {
    $this->stopwords = array_combine($this->configuration['stopwords'], $this->configuration['stopwords']);
  }
  return $this->stopwords;
}