You are here

function services_entity_services_entity_resource_info in Services Entity API 7.2

Implements hook_entity_resource_info().

Provides resources for all entity types.

File

./services_entity.module, line 69

Code

function services_entity_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',
  );
  $result['clean'] = array(
    'title' => 'Clean Entity Processor',
    'description' => 'An entity wrapper that strips out "drupalisms" such as the array structure and field_ prefixes.',
    'class' => 'ServicesEntityResourceControllerClean',
  );
  return $result;
}