You are here

public function BrightcoveVideoViewsData::getViewsData in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveVideoViewsData.php \Drupal\brightcove\Entity\BrightcoveVideoViewsData::getViewsData()
  2. 3.x src/Entity/BrightcoveVideoViewsData.php \Drupal\brightcove\Entity\BrightcoveVideoViewsData::getViewsData()

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/BrightcoveVideoViewsData.php, line 16

Class

BrightcoveVideoViewsData
Provides Views data for Brightcove Videos.

Namespace

Drupal\brightcove\Entity

Code

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