protected function CommerceDiscount::defaultUri in Commerce Discount 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
- includes/
commerce_discount.class.inc, line 59 - Commerce Discount Entity.
Class
- CommerceDiscount
- Entity class representing the commerce_discount entity type.
Code
protected function defaultUri() {
$entity_info = entity_get_info('commerce_discount');
$path = $entity_info['admin ui']['path'] . '/manage';
return array(
'path' => $path . '/' . $this->name,
);
}