public function ContentEntityBase::getUntranslated in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getUntranslated()
- 9 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getUntranslated()
Returns the translatable object in the language it was created.
Return value
\Drupal\Core\Entity\ContentEntityInterface The translation object referring to the original language.
Overrides TranslatableInterface::getUntranslated
1 call to ContentEntityBase::getUntranslated()
- ContentEntityBase::isTranslatable in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Returns the translation support status.
File
- core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php, line 883
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
public function getUntranslated() {
return $this
->getTranslation(LanguageInterface::LANGCODE_DEFAULT);
}