You are here

protected function FallbackLanguage::setLanguageList in Entity Language Fallback 8

Set internal language list.

File

src/Plugin/search_api/processor/FallbackLanguage.php, line 81

Class

FallbackLanguage
Excludes unpublished nodes from node indexes.

Namespace

Drupal\entity_language_fallback\Plugin\search_api\processor

Code

protected function setLanguageList(LanguageManagerInterface $languageManager) {
  $this->languages = $languageManager
    ->getLanguages();
  foreach ($this->languages as $key => &$language) {
    $language = ConfigurableLanguage::load($key);
  }
}