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::buildContent public function Builds a structured array representing the entity's content.
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::getRevisionId public function Returns the revision identifier of the entity.
EntityInterface::id public function Returns the entity identifier (the entity's machine name or numeric ID).
EntityInterface::isActiveRevision public function Checks if this entity is the active revision.
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::setIsActiveRevision public function Sets this revision as the active revision.
EntityInterface::uri public function Returns the URI elements of the entity.
EntityInterface::view public function View an entity.
EntityInterface::__construct public function Constructs a new entity object.