function restful_entity_info in RESTful 7.2
Same name and namespace in other branches
- 7 restful.entity.inc \restful_entity_info()
Implements hook_entity_info().
File
- ./
restful.entity.inc, line 17 - Contains entity related code.
Code
function restful_entity_info() {
$items['rate_limit'] = array(
'label' => t('Rate limit'),
'entity class' => '\\Drupal\\restful\\RateLimit\\Entity\\RateLimit',
'controller class' => '\\Drupal\\restful\\RateLimit\\Entity\\RateLimitController',
'base table' => 'restful_rate_limit',
'fieldable' => TRUE,
'entity keys' => array(
'id' => 'rlid',
'label' => 'identifier',
'bundle' => 'event',
),
'bundles' => array(),
'bundle keys' => array(
'bundle' => 'type',
),
'module' => 'restful',
'entity cache' => module_exists('entitycache'),
);
$items['cache_fragment'] = array(
'label' => t('Cache fragment'),
'entity class' => '\\Drupal\\restful\\RenderCache\\Entity\\CacheFragment',
'controller class' => '\\Drupal\\restful\\RenderCache\\Entity\\CacheFragmentController',
'base table' => 'restful_cache_fragment',
'fieldable' => FALSE,
'entity keys' => array(
'id' => 'tid',
'label' => 'identifier',
'bundle' => 'type',
),
'bundles' => array(),
'bundle keys' => array(
'bundle' => 'type',
),
'module' => 'restful',
'entity cache' => FALSE,
);
return $items;
}