Needs work
Project:
Token
Version:
8.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2018 at 09:34 UTC
Updated:
26 Jan 2026 at 15:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
brtamas commentedComment #4
brtamas commentedHere is a better one.
Comment #5
berdirthis should use \Drupal\Core\Entity\EntityRepositoryInterface::getTranslationFromContext() (entity.repository service), that will check if a translation exists and also do fallback logic if not.
Then you can use NULL s fallback and not 'und'.
Comment #6
aurora-norris commentedRerolled patch for 1.17