You are here

public function Server::getLanguageManager in Search API Autocomplete 8

Retrieves the language manager.

Return value

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

File

src/Plugin/search_api_autocomplete/suggester/Server.php, line 74

Class

Server
Provides a suggester plugin that retrieves suggestions from the server.

Namespace

Drupal\search_api_autocomplete\Plugin\search_api_autocomplete\suggester

Code

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