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