You are here

protected function FarmAsset::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_asset/farm_asset.class.inc, line 23
Farm asset classes.

Class

FarmAsset
Farm asset class.

Code

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