public function BrightcovePlaylistViewsData::getViewsData in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcovePlaylistViewsData.php \Drupal\brightcove\Entity\BrightcovePlaylistViewsData::getViewsData()
- 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\EntityCode
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;
}