This example demonstrates how to create an entity.
Parent topics
File
- modules/
examples/ entity_example/ entity_example.module, line 10 - Hook implementations for the Entity Example module.
Functions
Name | Location | Description |
---|---|---|
entity_example_autoload_info |
modules/ |
Implements hook_autoload_info(). |
entity_example_basic_add |
modules/ |
Provides a wrapper on the edit form to add a new entity. |
entity_example_basic_delete |
modules/ |
Use the controller to delete the entity. |
entity_example_basic_edit_delete |
modules/ |
Form deletion handler. |
entity_example_basic_form |
modules/ |
Form function to create an entity_example_basic entity. |
entity_example_basic_form_submit |
modules/ |
Form submit handler: Submits basic_add_form information. |
entity_example_basic_form_validate |
modules/ |
Validation handler for entity_example_basic_add_form form. |
entity_example_basic_list_entities |
modules/ |
Returns a render array with all entity_example_basic entities. |
entity_example_basic_load |
modules/ |
Fetch a basic object. |
entity_example_basic_load_multiple |
modules/ |
Loads multiple basic entities. |
entity_example_basic_save |
modules/ |
We save the entity by calling the controller. |
entity_example_basic_title |
modules/ |
Callback for a page title when this entity is displayed. |
entity_example_basic_uri |
modules/ |
Implements the uri callback. |
entity_example_basic_view |
modules/ |
Menu callback to display an entity. |
entity_example_entity_info |
modules/ |
Implements hook_entity_info(). |
entity_example_field_extra_fields |
modules/ |
Implements hook_field_extra_fields(). |
entity_example_info_page |
modules/ |
Basic information for the page. |
entity_example_menu |
modules/ |
Implements hook_menu(). |
entity_example_permission |
modules/ |
Implements hook_permission(). |
entity_example_schema |
modules/ |
Implements hook_schema(). |
entity_example_uninstall |
modules/ |
Implements hook_uninstall(). |
Classes
Name | Location | Description |
---|---|---|
EntityExampleTestCase |
modules/ |
Functionality tests for entity example module. |