Defines the controller class for comments.

This extends the EntityDatabaseStorageController class, adding required special handling for comment entities.

Hierarchy

Expanded class hierarchy of CommentStorageController

File

core/modules/comment/comment.entity.inc, line 218
Entity controller and class for comments.

Members

Contains filters are case sensitive
Name Modifierssort descending Type Description
CommentStorageController::buildQuery protected function Overrides EntityDatabaseStorageController::buildQuery(). Overrides DefaultEntityController::buildQuery
CommentStorageController::attachLoad protected function Overrides EntityDatabaseStorageController::attachLoad(). Overrides DefaultEntityController::attachLoad
CommentStorageController::preSave protected function Overrides EntityDatabaseStorageController::preSave(). Overrides EntityDatabaseStorageController::preSave
CommentStorageController::postSave protected function Overrides EntityDatabaseStorageController::postSave(). Overrides EntityDatabaseStorageController::postSave
CommentStorageController::postDelete protected function Overrides EntityDatabaseStorageController::postDelete(). Overrides EntityDatabaseStorageController::postDelete
CommentStorageController::updateNodeStatistics protected function Updates the comment statistics for a given node.
EntityDatabaseStorageController::preDelete protected function Acts on entities before they are deleted.
EntityDatabaseStorageController::invokeHook protected function Invokes a hook on behalf of the entity.
DefaultEntityController::cacheGet protected function Gets entities from the static cache.
DefaultEntityController::cacheSet protected function Stores entities in the static entity cache.
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.
CommentStorageController::load public function Overrides DefaultEntityController::load(). Overrides DefaultEntityController::load
CommentStorageController::buildContent public function Implements EntityControllerInterface::buildContent(). Overrides DefaultEntityController::buildContent
CommentStorageController::view public function Overrides DefaultEntityController::view(). Overrides DefaultEntityController::view
EntityDatabaseStorageController::create public function Implements EntityStorageControllerInterface::create(). Overrides EntityStorageControllerInterface::create
EntityDatabaseStorageController::delete public function Implements EntityStorageControllerInterface::delete(). Overrides EntityStorageControllerInterface::delete
EntityDatabaseStorageController::save public function Implements EntityStorageControllerInterface::save(). Overrides EntityStorageControllerInterface::save
DefaultEntityController::__construct public function Implements EntityControllerInterface::__construct().
DefaultEntityController::resetCache public function Implements EntityControllerInterface::resetCache(). Overrides EntityControllerInterface::resetCache
DefaultEntityController::resetStaticCache public function Implements EntityControllerInterface::resetStaticCache(). Overrides EntityControllerInterface::resetStaticCache