hook_language_fallback_candidates_alter

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 hook_language_fallback_candidates_alter(array &$fallback_candidates)

Perform alterations on the language fallback candidates.

Parameters

$fallback_candidates An array of language codes whose order will determine the language fallback order.

Related topics

Code

modules/locale/locale.api.php, line 190

<?php
function hook_language_fallback_candidates_alter(array &$fallback_candidates) {
  $fallback_candidates = array_reverse($fallback_candidates);
}
?>