You are here

public function SnowballStemmer::getLanguageManager 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::getLanguageManager()

Retrieves the language manager.

Return value

\Drupal\Core\Language\LanguageInterface The language manager.

File

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

Class

SnowballStemmer
Stems search terms.

Namespace

Drupal\snowball_stemmer\Plugin\search_api\processor

Code

public function getLanguageManager() {
  return $this->languageManager ?: \Drupal::service('language_manager');
}