public function Entity::uri

cis7 entity.inc public Entity::uri()
cle7 entity.inc public Entity::uri()
elmsmedia7 entity.inc public Entity::uri()
icor7 entity.inc public Entity::uri()
meedjum_blog7 entity.inc public Entity::uri()
mooc7 entity.inc public Entity::uri()

Returns the uri of the entity just as entity_uri().

Modules may alter the uri by specifying another 'uri callback' using hook_entity_info_alter().

See also

entity_uri()

File

sites/all/modules/ulmus/entity/includes/entity.inc, line 157
Provides a base class for entities.

Class

Entity
A common class for entities.

Code

public function uri() {
  if (isset($this->entityInfo['uri callback']) && $this->entityInfo['uri callback'] == 'entity_class_uri') {
    return $this->defaultUri();
  }
  return entity_uri($this->entityType, $this);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.