You are here

public function Transliteration::getTransliterator in Search API 8

Retrieves the transliterator.

Return value

\Drupal\Component\Transliteration\TransliterationInterface The transliterator.

File

src/Plugin/search_api/processor/Transliteration.php, line 68

Class

Transliteration
Makes searches insensitive to accents and other non-ASCII characters.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

public function getTransliterator() {
  return $this->transliterator ?: \Drupal::service('transliteration');
}