interface EntityAPIControllerRevisionableInterface in Entity API 7
Interface for EntityControllers of entities that support revisions.
Hierarchy
- interface \DrupalEntityControllerInterface
- interface \EntityAPIControllerInterface
- interface \EntityAPIControllerRevisionableInterface
- interface \EntityAPIControllerInterface
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrupalEntityControllerInterface:: |
public | function | Loads one or more entities. | 1 |
DrupalEntityControllerInterface:: |
public | function | Resets the internal, static entity cache. | 1 |
EntityAPIControllerInterface:: |
public | function | Builds a structured array representing the entity's content. | 1 |
EntityAPIControllerInterface:: |
public | function | Create a new entity. | 1 |
EntityAPIControllerInterface:: |
public | function | Delete permanently saved entities. | 1 |
EntityAPIControllerInterface:: |
public | function | Exports an entity as serialized string. | 1 |
EntityAPIControllerInterface:: |
public | function | Imports an entity from a string. | 1 |
EntityAPIControllerInterface:: |
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:: |
public | function | Permanently saves the given entity. | 1 |
EntityAPIControllerInterface:: |
public | function | Generate an array for rendering the given entities. | 1 |
EntityAPIControllerRevisionableInterface:: |
public | function | Delete an entity revision. | 1 |