public function CommerceDiscount::getTranslation in Commerce Discount 7
Overridden, to introduce the method for old entity API versions (BC).
@todo Remove once we bump the required entity API version.
Overrides Entity::getTranslation
1 call to CommerceDiscount::getTranslation()
File
- includes/
commerce_discount.class.inc, line 70 - Commerce Discount Entity.
Class
- CommerceDiscount
- Entity class representing the commerce_discount entity type.
Code
public function getTranslation($property, $langcode = NULL) {
if (module_exists('i18n_string')) {
return parent::getTranslation($property, $langcode);
}
return $this->{$property};
}