diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index 636c00b..6ec6cb3 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -559,6 +559,8 @@ public function getTranslation($langcode) { // If we were given a valid language and there is no translation for it, // we return a new one. if (isset($this->languages[$langcode])) { + //Just trying to figure out if this still happens. + throw new \InvalidArgumentException('Translation for ' . $langcode . ' does not exist, use addTranslation() first.'); // If the entity or the requested language is not a configured // language, we fall back to the entity itself, since in this case it // cannot have translations.