protected function RoomsBooking::defaultLabel in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
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
- modules/
rooms_booking/ rooms_booking.module, line 1016 - Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.
Class
- RoomsBooking
- The class used for Rooms Booking entities.
Code
protected function defaultLabel() {
return $this->name;
}