MediaBrowserBrightcovePlaylist.inc in Brightcove Video Connect 7.7
Same filename and directory in other branches
Definition of MediaBrowserPlaylist.
File
brightcove_media/includes/MediaBrowserBrightcovePlaylist.incView source
<?php
/**
* @file
* Definition of MediaBrowserPlaylist.
*/
/**
* Media browser plugin for showing the upload form.
*
* @deprecated
*/
class MediaBrowserBrightcovePlaylist extends MediaBrowserPlugin {
/**
* Implements MediaBrowserPluginInterface::access().
*/
public function access($account = NULL) {
return file_entity_access('create', NULL, $account);
}
/**
* Implements MediaBrowserPlugin::view().
*/
public function view() {
$bcpath = drupal_get_path('module', 'brightcove_media');
return [
'#title' => t('Brightcove playlists'),
'#settings' => [
'getMediaUrl' => url('brightcove/media/playlist/list'),
],
'#attached' => [
'js' => [
$bcpath . '/js/brightcove_media.js',
$bcpath . '/js/brightcove_media.playlist.js',
],
],
'form' => drupal_get_form('brightcove_media_playlist_browser_form'),
];
}
}
Classes
Name![]() |
Description |
---|---|
MediaBrowserBrightcovePlaylist | Media browser plugin for showing the upload form. |