ContentEntityBase::getUntranslated

public ContentEntityBase::getUntranslated()

Returns the translatable object referring to the original language.

Return value

$this The translation object referring to the original language.

Overrides TranslatableInterface::getUntranslated

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 754

Class

ContentEntityBase
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function getUntranslated() {
  return $this->getTranslation(LanguageInterface::LANGCODE_DEFAULT);
}
doc_Drupal
2016-10-29 08:56:57
Comments
Leave a Comment

Please login to continue.