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

1
2
3
public function getUntranslated() {
  return $this->getTranslation(LanguageInterface::LANGCODE_DEFAULT);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.