You are here

public function ReverseEntityReferences::getLanguageManager in Search API 8

Retrieves the language manager.

Return value

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

File

src/Plugin/search_api/processor/ReverseEntityReferences.php, line 173

Class

ReverseEntityReferences
Allows indexing of reverse entity references.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

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