protected function Entity::defaultUri in Entity API 7
Override this in order to implement a custom default URI and specify 'entity_class_uri' as 'uri callback' hook_entity_info().
1 call to Entity::defaultUri()
- Entity::uri in includes/
entity.inc - Returns the uri of the entity just as entity_uri().
File
- includes/
entity.inc, line 317 - Provides a base class for entities.
Class
- Entity
- A common class for entities.
Code
protected function defaultUri() {
return array(
'path' => 'default/' . $this
->identifier(),
);
}