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
Name Modifierssort descending Type Description
EntityInterface::__construct public function Constructs a new entity object.
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::entityType public function Returns the type of the entity.
EntityInterface::bundle public function Returns the bundle of the entity.
EntityInterface::label public function Returns the label of the entity.
EntityInterface::uri public function Returns the URI elements of the entity.
EntityInterface::save public function Saves an entity permanently.
EntityInterface::delete public function Deletes an entity permanently.
EntityInterface::createDuplicate public function Creates a duplicate of the entity.
EntityInterface::access public function Determines whether the given user has access to this 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::isActiveRevision public function Checks if this entity is the active revision.
EntityInterface::setIsActiveRevision public function Sets this revision as the active revision.
EntityInterface::buildContent public function Builds a structured array representing the entity's content.
EntityInterface::view public function View an entity.
EntityInterface::createAccess public static function Determines whether the given user has access to create this type of entity.