You are here

public function Server::getTransliterator in Search API Autocomplete 8

Retrieves the transliteration.

Return value

\Drupal\Component\Transliteration\TransliterationInterface The transliteration.

File

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

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 getTransliterator() {
  return $this->transliterator ?: \Drupal::service('transliteration');
}