You are here

public function BrightcovePlaylistViewsData::getViewsData in Brightcove Video Connect 8

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

Class

BrightcovePlaylistViewsData
Provides Views data for Brightcove Playlists.

Namespace

Drupal\brightcove\Entity

Code

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