function hook_services_entity_resource_info in Services Entity API 7.2
Defines Services Entity resource plugins.
Return value
An associative array with the following keys:
- 'title': The display name of the controller.
- 'description': A short description of the controller.
- 'class': The class name of the controller. This should be in a separate file included in the module .info file.
See also
hook_services_entity_resource_info_alter()
1 function implements hook_services_entity_resource_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- services_entity_services_entity_resource_info in ./
services_entity.module - Implements hook_entity_resource_info().
1 invocation of hook_services_entity_resource_info()
- services_entity_get_resource_info in ./
services_entity.module - Returns info about all defined resources.
File
- ./
services_entity.api.php, line 25 - Hooks provided by Services Entity for the definition of Resource Controllers.
Code
function hook_services_entity_resource_info() {
$result = array();
$result['generic'] = array(
'title' => 'Generic Entity Processor',
'description' => 'Acts as a generic wrapper for entities. Data structures are exactly what they are in Drupal.',
'class' => 'ServicesEntityResourceController',
);
return $result;
}