2 * Implements hook_language_fallback_candidates_OPERATION_alter().
4 function {{ machine_name }}_language_fallback_candidates_OPERATION_alter(array &$candidates, array $context) {
5 // We know that the current OPERATION deals with entities so no need to check
7 if ($context['data']->getEntityTypeId() == 'node') {
8 $candidates = array_reverse($candidates);