You are here

public function SnowballStemmer::setStemmer in Snowball Stemmer 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/search_api/processor/SnowballStemmer.php \Drupal\snowball_stemmer\Plugin\search_api\processor\SnowballStemmer::setStemmer()

Sets the stemmer service.

Parameters

\Drupal\snowball_stemmer\Stemmer $stemmer: The stemmer service.

Return value

$this

File

src/Plugin/search_api/processor/SnowballStemmer.php, line 75

Class

SnowballStemmer
Stems search terms.

Namespace

Drupal\snowball_stemmer\Plugin\search_api\processor

Code

public function setStemmer(Stemmer $stemmer) {
  $this->stemmer = $stemmer;
  return $this;
}