protected ContentEntityBase::getTranslatedField($name, $langcode)
Gets a translated field.
Return value
\Drupal\Core\Field\FieldItemListInterface
File
core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 462
Class
ContentEntityBase Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\Entity
Code
protected function getTranslatedField($name, $langcode) {
if ($this->translations[$this->activeLangcode]['status'] == static::TRANSLATION_REM