function LanguageManager::getFallbackCandidates
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getFallbackCandidates()
- 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getFallbackCandidates()
- 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getFallbackCandidates()
Overrides LanguageManagerInterface::getFallbackCandidates
1 call to LanguageManager::getFallbackCandidates()
- ConfigurableLanguageManager::getFallbackCandidates in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns the language fallback candidates for a given context.
1 method overrides LanguageManager::getFallbackCandidates()
- ConfigurableLanguageManager::getFallbackCandidates in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns the language fallback candidates for a given context.
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 215
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
public function getFallbackCandidates(array $context = []) {
return [
LanguageInterface::LANGCODE_DEFAULT,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.