Defines a common interface for all entity objects.

Implemented by

Hierarchy

Expanded class hierarchy of EntityInterface

File

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

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
EntityInterface::access public function Determines whether the given user has access to this entity.
EntityInterface::bundle public function Returns the bundle of the entity.
EntityInterface::createAccess public static function Determines whether the given user has access to create this type of entity.
EntityInterface::createDuplicate public function Creates a duplicate of the entity.
EntityInterface::delete public function Deletes an entity permanently.
EntityInterface::entityType public function Returns the type of the entity.
EntityInterface::getFieldValue public function Returns a single value from a field on the entity.
EntityInterface::getFieldValues public function Returns all values from a field on the entity.
EntityInterface::id public function Returns the entity identifier (the entity's machine name or numeric ID).
EntityInterface::isNew public function Returns whether the entity is new.
EntityInterface::label public function Returns the label of the entity.
EntityInterface::save public function Saves an entity permanently.
EntityInterface::uri public function Returns the URI elements of the entity.
EntityInterface::__construct public function Constructs a new entity object.