public function Entity::identifier

cis7 public Entity::identifier()
cle7 public Entity::identifier()
elmsmedia7 public Entity::identifier()
icor7 public Entity::identifier()
meedjum_blog7 public Entity::identifier()
mooc7 public Entity::identifier()

Returns the entity identifier, i.e. the entities name or numeric id.

Return value

The identifier of the entity. If the entity type makes use of a name key, the name is returned, else the numeric id.

See also


4 calls to Entity::identifier()
Entity::defaultUri in sites/all/modules/ulmus/entity/includes/
Override this in order to implement a custom default URI and specify 'entity_class_uri' as 'uri callback' hook_entity_info().
Entity::delete in sites/all/modules/ulmus/entity/includes/
Permanently deletes the entity.
Entity::getTranslation in sites/all/modules/ulmus/entity/includes/
Gets the raw, translated value of a property or field.
EntityClass::defaultURI in sites/all/modules/ulmus/entity/tests/entity_test.module
Specifies the default uri, which is picked up by uri() by default.


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


A common class for entities.


public function identifier() {
  return isset($this->{$this->nameKey}) ? $this->{$this->nameKey} : NULL;