Implements ComplexDataInterface::get().
Overrides Entity::get
public function get($property_name) {
// Values in default language are always stored using the LANGUAGE_DEFAULT
// constant.
if (!isset($this->fields[$property_name][LANGUAGE_DEFAULT])) {
return $this
->getTranslatedField($property_name, LANGUAGE_DEFAULT);
}
return $this->fields[$property_name][LANGUAGE_DEFAULT];
}