You are here

function entity_usage_views_data in Entity Usage 8

Same name and namespace in other branches
  1. 8.4 entity_usage.views.inc \entity_usage_views_data()
  2. 8.2 entity_usage.views.inc \entity_usage_views_data()

Implements hook_views_data().

File

./entity_usage.views.inc, line 11
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 referencing entity.'),
    'field' => [
      'id' => 'numeric',
    ],
    'sort' => [
      'id' => 'standard',
    ],
    'filter' => [
      'id' => 'numeric',
    ],
    'argument' => [
      'id' => 'numeric',
    ],
  ];
  return $data;
}