Commit 934e93d0 authored by catch's avatar catch

Issue #2142603 by yched: DX / efficiency for accessing the 'default langcode' of an entity.

parent 7dbacefd
......@@ -651,8 +651,7 @@ public function getTranslation($langcode) {
* {@inheritdoc}
*/
public function getUntranslated() {
$langcode = Language::LANGCODE_DEFAULT;
return isset($this->translations[$langcode]['entity']) ? $this->translations[$langcode]['entity'] : $this->getTranslation($langcode);
return $this->getTranslation(Language::LANGCODE_DEFAULT);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment