Having an entity reference, Drupal 8 automatically renders the base language of a referenced entity if it isn't translated yet. Is there a way to globally prevent that? So if there is ContentType1 referencing ContentType2, both have a default language of
en-gb. Translating ContentType1 to
de-de will by default still show ContentType2's
en-gb node unless I manually translate it or change a thing.
What I currently do is comparing the current page language
\Drupal::languageManager()->getCurrentLanguage()->getId(); with the current node language
$variables['node']->language()->getId(); and return an empty
Is there a better solution? Especially when you have multiple