Issue #3226716 by beatrizrodrigues, joachim, xjm, lucienchalom: Missing return value documentation for TranslatableInterface::addTranslation()

merge-requests/1868/merge
quietone 2022-03-11 21:11:03 +00:00
parent 3e4ed27fe0
commit 4657466d12
1 changed files with 5 additions and 3 deletions

View File

@ -69,7 +69,7 @@ interface TranslatableInterface {
* 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 @@ interface TranslatableInterface {
/**
* 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 @@ interface TranslatableInterface {
* (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.