You are here

function payment_label in Payment 7

Returns the label of a given Payment entity.

Parameters

Payment $entity: A Payment entity.

Return value

string The label of the Payment entity.

1 call to payment_label()
payment_entity_property_get in ./payment.module
Gets the property of a Payment entity.
1 string reference to 'payment_label'
payment_entity_info in ./payment.module
Implements hook_entity_info().

File

./payment.module, line 513
Hook implementations and shared functions.

Code

function payment_label(Payment $entity) {
  return t($entity->description, $entity->description_arguments);
}