Commit 89d52d9a authored by catch's avatar catch

Issue #2442721 by daffie, mgifford: Direct access to the variable $parent in...

Issue #2442721 by daffie, mgifford: Direct access to the variable $parent in Drupal\Core\Field\FieldItemBase::getLangcode()
parent bac3f88e
......@@ -70,7 +70,7 @@ public function getEntity() {
* {@inheritdoc}
*/
public function getLangcode() {
return $this->parent->getLangcode();
return $this->getParent()->getLangcode();
}
/**
......
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