You are here

interface EntityAPIControllerRevisionableInterface in Entity API 7

Interface for EntityControllers of entities that support revisions.

Hierarchy

Expanded class hierarchy of EntityAPIControllerRevisionableInterface

All classes that implement EntityAPIControllerRevisionableInterface

2 string references to 'EntityAPIControllerRevisionableInterface'
entity_revision_delete in ./entity.module
Deletes an entity revision.
entity_revision_is_default in ./entity.module
Checks whether the given entity is the default revision.

File

includes/entity.controller.inc, line 130
Provides a controller building upon the core controller but providing more features like full CRUD functionality.

View source
interface EntityAPIControllerRevisionableInterface extends EntityAPIControllerInterface {

  /**
   * Delete an entity revision.
   *
   * Note that the default revision of an entity cannot be deleted.
   *
   * @param $revision_id
   *   The ID of the revision to delete.
   *
   * @return bool
   *   TRUE if the entity revision could be deleted, FALSE otherwise.
   */
  public function deleteRevision($revision_id);

}

Members

Namesort descending Modifiers Type Description Overrides
DrupalEntityControllerInterface::load public function Loads one or more entities. 1
DrupalEntityControllerInterface::resetCache public function Resets the internal, static entity cache. 1
EntityAPIControllerInterface::buildContent public function Builds a structured array representing the entity's content. 1
EntityAPIControllerInterface::create public function Create a new entity. 1
EntityAPIControllerInterface::delete public function Delete permanently saved entities. 1
EntityAPIControllerInterface::export public function Exports an entity as serialized string. 1
EntityAPIControllerInterface::import public function Imports an entity from a string. 1
EntityAPIControllerInterface::invoke public function Invokes a hook on behalf of the entity. For hooks that have a respective field API attacher like insert/update/.. the attacher is called too. 1
EntityAPIControllerInterface::save public function Permanently saves the given entity. 1
EntityAPIControllerInterface::view public function Generate an array for rendering the given entities. 1
EntityAPIControllerRevisionableInterface::deleteRevision public function Delete an entity revision. 1