You are here

public function Transliteration::getLangcode in Search API 8

Retrieves the langcode.

Return value

string The langcode.

1 call to Transliteration::getLangcode()
Transliteration::process in src/Plugin/search_api/processor/Transliteration.php
Processes a single string value.

File

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

Class

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

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

public function getLangcode() {
  return $this->langcode ?: $this
    ->getLanguageManager()
    ->getDefaultLanguage()
    ->getId();
}