function language_test_language_fallback_candidates_alter
Same name in other branches
- 8.9.x core/modules/language/tests/language_test/language_test.module \language_test_language_fallback_candidates_alter()
- 10 core/modules/language/tests/language_test/language_test.module \language_test_language_fallback_candidates_alter()
- 11.x core/modules/language/tests/language_test/language_test.module \language_test_language_fallback_candidates_alter()
Implements hook_language_fallback_candidates_alter().
File
-
core/
modules/ language/ tests/ language_test/ language_test.module, line 81
Code
function language_test_language_fallback_candidates_alter(array &$candidates, array $context) {
if (Drupal::state()->get('language_test.fallback_alter.candidates')) {
unset($candidates[LanguageInterface::LANGCODE_NOT_SPECIFIED]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.