You are here

protected function BatUnit::defaultUri in Booking and Availability Management Tools for Drupal 7

Override this in order to implement a custom default URI and specify 'entity_class_uri' as 'uri callback' hook_entity_info().

Overrides Entity::defaultUri

File

modules/bat_unit/bat_unit.module, line 1014

Class

BatUnit
The class used for unit entities.

Code

protected function defaultUri() {
  return array(
    'path' => 'unit/' . $this->unit_id,
  );
}