public function SnowballStemmer::setStemmer in Snowball Stemmer 8
Same name and namespace in other branches
- 2.x 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\processorCode
public function setStemmer(Stemmer $stemmer) {
$this->stemmer = $stemmer;
return $this;
}