function locale_test_language_fallback_candidates_locale_lookup_alter
Same name in other branches
- 9 core/modules/locale/tests/modules/locale_test/locale_test.module \locale_test_language_fallback_candidates_locale_lookup_alter()
- 8.9.x core/modules/locale/tests/modules/locale_test/locale_test.module \locale_test_language_fallback_candidates_locale_lookup_alter()
- 10 core/modules/locale/tests/modules/locale_test/locale_test.module \locale_test_language_fallback_candidates_locale_lookup_alter()
Implements hook_language_fallback_candidates_OPERATION_alter().
File
-
core/
modules/ locale/ tests/ modules/ locale_test/ locale_test.module, line 157
Code
function locale_test_language_fallback_candidates_locale_lookup_alter(array &$candidates, array $context) {
\Drupal::state()->set('locale.test_language_fallback_candidates_locale_lookup_alter_candidates', $candidates);
\Drupal::state()->set('locale.test_language_fallback_candidates_locale_lookup_alter_context', $context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.