protected function Entity::defaultUri

cis7 entity.inc protected Entity::defaultUri()
cle7 entity.inc protected Entity::defaultUri()
elmsmedia7 entity.inc protected Entity::defaultUri()
icor7 entity.inc protected Entity::defaultUri()
meedjum_blog7 entity.inc protected Entity::defaultUri()
mooc7 entity.inc protected Entity::defaultUri()

Override this in order to implement a custom default URI and specify 'entity_class_uri' as 'uri callback' hook_entity_info().

1 call to Entity::defaultUri()
Entity::uri in sites/all/modules/ulmus/entity/includes/entity.inc
Returns the uri of the entity just as entity_uri().
1 method overrides Entity::defaultUri()
EntityClass::defaultURI in sites/all/modules/ulmus/entity/tests/entity_test.module
Specifies the default uri, which is picked up by uri() by default.

File

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

Class

Entity
A common class for entities.

Code

protected function defaultUri() {
  return array('path' => 'default/' . $this->identifier());
}
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.