1.20.x entity.class.inc public EntityInterface::id()

Returns the entity identifier (the entity's machine name or numeric ID).

Return value

The identifier of the entity, or NULL if the entity does not yet have: an identifier.

File

modules/entity/entity.class.inc, line 28
Provides an interface and a base class for entities.

Class

EntityInterface
Defines a common interface for all entity objects.

Code

public function id();