public LanguageManager::getFallbackCandidates(array $context = array())
Returns the language fallback candidates for a given context.
array $context: (optional) An associative array of data that can be useful to determine the fallback sequence. The following keys are used in core:
array An array of language codes sorted by priority: first values should be tried first.
Overrides LanguageManagerInterface::getFallbackCandidates
public function getFallbackCandidates(array $context = array()) { return array(LanguageInterface::LANGCODE_DEFAULT); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Language!LanguageManager.php/function/LanguageManager::getFallbackCandidates/8.1.x