protected function FarmPlan::defaultUri in farmOS 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/
farm/ farm_plan/ farm_plan.class.inc, line 23 - Farm plan classes.
Class
- FarmPlan
- Farm plan class.
Code
protected function defaultUri() {
return array(
'path' => 'farm/plan/' . $this
->identifier(),
);
}