You are here

public function ContentEntityBase::getUntranslated in Drupal 9

Same name and namespace in other branches
  1. 8 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 882

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