Defines a base entity controller class.

Default implementation of EntityControllerInterface.

This class can be used as-is by most simple entity types. Entity types requiring special handling can extend the class.

Hierarchy

Expanded class hierarchy of DefaultEntityController

File

core/modules/entity/entity.controller.inc, line 101
Entity API controller classes and interface.

Members

Contains filters are case sensitive
Name Modifiers Typesort descending Description
DefaultEntityController::__construct public function Implements EntityControllerInterface::__construct().
DefaultEntityController::resetCache public function Implements EntityControllerInterface::resetCache(). Overrides EntityControllerInterface::resetCache
DefaultEntityController::load public function Implements EntityControllerInterface::load(). Overrides EntityControllerInterface::load
DefaultEntityController::buildQuery protected function Builds the query to load the entity.
DefaultEntityController::attachLoad protected function Attaches data to entities upon loading.
DefaultEntityController::cacheGet protected function Gets entities from the static cache.
DefaultEntityController::cacheSet protected function Stores entities in the static entity cache.
DefaultEntityController::resetStaticCache public function Implements EntityControllerInterface::resetStaticCache(). Overrides EntityControllerInterface::resetStaticCache
DefaultEntityController::buildContent public function Implements EntityControllerInterface::buildContent(). Overrides EntityControllerInterface::buildContent
DefaultEntityController::view public function Implements EntityControllerInterface::view(). Overrides EntityControllerInterface::view
DefaultEntityController::$entityCache protected property Static cache of entities.
DefaultEntityController::$entityType protected property Entity type for this controller instance.
DefaultEntityController::$entityInfo protected property Array of information about the entity.
DefaultEntityController::$hookLoadArguments protected property Additional arguments to pass to hook_TYPE_load().
DefaultEntityController::$idKey protected property Name of the entity's ID field in the entity database table.
DefaultEntityController::$revisionKey protected property Name of entity's revision database table field, if it supports revisions.
DefaultEntityController::$revisionTable protected property The table that stores revisions, if the entity supports revisions.
DefaultEntityController::$persistentCache protected property Whether this entity type should use the persistent entity cache.
DefaultEntityController::$staticCache protected property Whether this entity type should use the static cache.