Commit aeed17d9 authored by quietone's avatar quietone
Browse files

Issue #3226716 by beatrizrodrigues, joachim, xjm, lucienchalom: Missing return...

Issue #3226716 by beatrizrodrigues, joachim, xjm, lucienchalom: Missing return value documentation for TranslatableInterface::addTranslation()
parent 3e378438
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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
@@ -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();

@@ -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.