protected function MerciReservation::defaultLabel in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Defines the entity label if the 'entity_class_label' callback is used.
Specify 'entity_class_label' as 'label callback' in hook_entity_info() to let the entity label point to this method. Override this in order to implement a custom default label.
Overrides Entity::defaultLabel
File
- merci_reservation/
includes/ entity.inc, line 6
Class
- MerciReservation
- Task class.
Code
protected function defaultLabel() {
if (property_exists($this, 'id')) {
return "Checkout " . $this->id;
}
return "Checkout";
}