You are here

public function BrightcoveTextTrackViewsData::getViewsData in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveTextTrackViewsData.php \Drupal\brightcove\Entity\BrightcoveTextTrackViewsData::getViewsData()
  2. 3.x src/Entity/BrightcoveTextTrackViewsData.php \Drupal\brightcove\Entity\BrightcoveTextTrackViewsData::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/BrightcoveTextTrackViewsData.php, line 16

Class

BrightcoveTextTrackViewsData
Provides Views data for Brightcove Text Track entities.

Namespace

Drupal\brightcove\Entity

Code

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