function locale_test_language_fallback_candidates_locale_lookup_alter in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 145 - Simulate a custom module with a local po file.
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);
}