You are here

public function InviteViewsData::getViewsData in Invite 8

Returns views data for the entity type.

Return value

array Views data in the format of hook_views_data().

Overrides EntityViewsData::getViewsData

File

src/Entity/InviteViewsData.php, line 16

Class

InviteViewsData
Provides Views data for Invite entities.

Namespace

Drupal\invite\Entity

Code

public function getViewsData() {
  $data = parent::getViewsData();
  $data['invite']['table']['base'] = [
    'field' => 'id',
    'title' => $this
      ->t('Invite'),
    'help' => $this
      ->t('The Invite ID.'),
  ];
  return $data;
}