public function FallbackController::getFallbackChain in Entity Language Fallback 8
Parameters
string $lang_code:
Return value
[] Array of language codes for the fallback chain, most preferred languages first.
Overrides FallbackControllerInterface::getFallbackChain
1 call to FallbackController::getFallbackChain()
- FallbackController::getEntityFallbackCandidates in src/
FallbackController.php - @todo: Consider using @cache.memory service for cache meta-data (8.6+).
File
- src/
FallbackController.php, line 47
Class
Namespace
Drupal\entity_language_fallbackCode
public function getFallbackChain($lang_code) {
$this
->ensureFallbackChain($lang_code);
return $this->fallback_chain[$lang_code];
}