function entity_usage_views_data in Entity Usage 8.4
Same name and namespace in other branches
- 8 entity_usage.views.inc \entity_usage_views_data()
- 8.2 entity_usage.views.inc \entity_usage_views_data()
Implements hook_views_data().
File
- ./
entity_usage.views.inc, line 13 - Provide views data for entity_usage.module.
Code
function entity_usage_views_data() {
$data['entity_usage']['table']['group'] = t('Entity Usage');
$data['entity_usage']['count'] = [
'title' => t('Usage count'),
'help' => t('How many times the target entity is referenced by the source entity.'),
'field' => [
'id' => 'numeric',
],
'sort' => [
'id' => 'standard',
],
'filter' => [
'id' => 'numeric',
],
'argument' => [
'id' => 'numeric',
],
];
return $data;
}