You are here

public function LanguageManager::getFallbackCandidates in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getFallbackCandidates()
  2. 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getFallbackCandidates()

File

core/lib/Drupal/Core/Language/LanguageManager.php, line 210

Class

LanguageManager
Class responsible for providing language support on language-unaware sites.

Namespace

Drupal\Core\Language

Code

public function getFallbackCandidates(array $context = []) {
  return [
    LanguageInterface::LANGCODE_DEFAULT,
  ];
}