protected function SalesforceMappingObject::defaultUri in Salesforce Suite 7.3
Retrieve the default URI.
Return value
array Associated array with the default URI on the 'path' key.
Overrides Entity::defaultUri
File
- modules/
salesforce_mapping/ includes/ salesforce_mapping_object.entity.inc, line 44 - Contains SalesforceMappingObject.
Class
- SalesforceMappingObject
- Entity class for Salesforce Mapping Objects
Code
protected function defaultUri() {
$uri = NULL;
$wrapper = entity_metadata_wrapper($this
->entityType(), $this);
$entity = $wrapper->entity
->value();
if ($entity) {
$uri = method_exists($entity, 'uri') ? $entity
->uri() : entity_uri($this->entity_type, $entity);
}
if (is_null($uri)) {
$path = 'admin/content/salesforce/' . $this->entity_type . '/' . $this->entity_id;
}
else {
$path = $uri['path'];
}
return array(
'path' => $path . '/salesforce_activity',
);
}