function LocaleTestHooks::languageFallbackCandidatesLocaleLookupAlter
Implements hook_language_fallback_candidates_OPERATION_alter().
File
-
core/
modules/ locale/ tests/ modules/ locale_test/ src/ Hook/ LocaleTestHooks.php, line 157
Class
- LocaleTestHooks
- Hook implementations for locale_test.
Namespace
Drupal\locale_test\HookCode
public function languageFallbackCandidatesLocaleLookupAlter(array &$candidates, array $context) : void {
\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.