You are here

public function EntityInterface::identifier in Entity API 7

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

Return value

string|int 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

entity_id()

1 method overrides EntityInterface::identifier()
Entity::identifier in includes/entity.inc
Returns the entity identifier, i.e. the entities name or numeric id.

File

includes/entity.inc, line 32
Provides a base class for entities.

Class

EntityInterface
Interface for class based entities.

Code

public function identifier();