protected function CommerceFileLicenseEntity::defaultURI in Commerce File 7
Specifies the default uri, which is picked up by uri() by default.
File
- includes/
commerce_file_license.entity.inc, line 127 - Provides a base class for CommerceFileLicenseEntity.
Class
- CommerceFileLicenseEntity
- A Commerce File License entity class.
Code
protected function defaultURI() {
$path = '';
if (isset($this->entityInfo['admin ui']['path'])) {
$path = $this->entityInfo['admin ui']['path'] . '/manage/' . $this
->internalIdentifier();
}
else {
$path = 'admin/commerce/file-licenses/manage/' . $this
->internalIdentifier();
}
return array(
'path' => $path,
);
}