function payment_entity_property_get in Payment 7
Gets the property of a Payment entity.
See also
payment_entity_property_info()
1 string reference to 'payment_entity_property_get'
- payment_entity_property_info in ./
payment.module - Implements hook_entity_property_info().
File
- ./
payment.module, line 609 - Hook implementations and shared functions.
Code
function payment_entity_property_get(Payment $payment, array $options, $name, $type, $info) {
switch ($name) {
case 'description':
return payment_label($payment);
default:
return entity_property_verbatim_get($payment, $options, $name, $type, $info);
}
}