You are here

public function ContentEntityBase::getUntranslated in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\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 757
Contains \Drupal\Core\Entity\ContentEntityBase.

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);
}