interface EntityExampleBasicControllerInterface in Examples for Developers 7
EntityExampleBasicControllerInterface definition.
We create an interface here because anyone could come along and use hook_entity_info_alter() to change our controller class. We want to let them know what methods our class needs in order to function with the rest of the module, so here's a handy list.
Hierarchy
- interface \DrupalEntityControllerInterface
- interface \EntityExampleBasicControllerInterface
Expanded class hierarchy of EntityExampleBasicControllerInterface
All classes that implement EntityExampleBasicControllerInterface
See also
Related topics
File
- entity_example/
entity_example.module, line 505 - Implements the basic functionality required to create and display an entity.
View source
interface EntityExampleBasicControllerInterface extends DrupalEntityControllerInterface {
/**
* Create an entity.
*/
public function create();
/**
* Save an entity.
*
* @param object $entity
* The entity to save.
*/
public function save($entity);
/**
* Delete an entity.
*
* @param object $entity
* The entity to delete.
*/
public function delete($entity);
}
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 |
EntityExampleBasicControllerInterface:: |
public | function | Create an entity. | 1 |
EntityExampleBasicControllerInterface:: |
public | function | Delete an entity. | 1 |
EntityExampleBasicControllerInterface:: |
public | function | Save an entity. | 1 |