Loading core/lib/Drupal/Core/TypedData/TranslatableInterface.php +5 −3 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ public function getTranslationLanguages($include_default = TRUE); * LanguageInterface::LANGCODE_DEFAULT * to get the data in default language. * * @return $this * @return \Drupal\Core\Entity\ContentEntityInterface * A typed data object for the translated data. * * @throws \InvalidArgumentException Loading @@ -80,7 +80,8 @@ public function getTranslation($langcode); /** * Returns the translatable object in the language it was created. * * @return $this * @return \Drupal\Core\Entity\ContentEntityInterface * The translation object referring to the original language. */ public function getUntranslated(); Loading Loading @@ -109,7 +110,8 @@ public function hasTranslation($langcode); * (optional) An array of initial values to be assigned to the translatable * fields. Defaults to none. * * @return $this * @return \Drupal\Core\Entity\ContentEntityInterface * A new entity translation object. * * @throws \InvalidArgumentException * If an invalid or existing translation language is specified. Loading Loading
core/lib/Drupal/Core/TypedData/TranslatableInterface.php +5 −3 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ public function getTranslationLanguages($include_default = TRUE); * LanguageInterface::LANGCODE_DEFAULT * to get the data in default language. * * @return $this * @return \Drupal\Core\Entity\ContentEntityInterface * A typed data object for the translated data. * * @throws \InvalidArgumentException Loading @@ -80,7 +80,8 @@ public function getTranslation($langcode); /** * Returns the translatable object in the language it was created. * * @return $this * @return \Drupal\Core\Entity\ContentEntityInterface * The translation object referring to the original language. */ public function getUntranslated(); Loading Loading @@ -109,7 +110,8 @@ public function hasTranslation($langcode); * (optional) An array of initial values to be assigned to the translatable * fields. Defaults to none. * * @return $this * @return \Drupal\Core\Entity\ContentEntityInterface * A new entity translation object. * * @throws \InvalidArgumentException * If an invalid or existing translation language is specified. Loading