class Playlist in Brightcove Video Connect 3.x
Same name and namespace in other branches
- 8.2 src/Playlist.php \Drupal\brightcove\Playlist
- 8 src/Playlist.php \Drupal\brightcove\Playlist
Override Brightcove API Wrapper's Playlist class.
Hierarchy
- class \Drupal\brightcove\Playlist extends \Brightcove\Item\Playlist
Expanded class hierarchy of Playlist
2 string references to 'Playlist'
- brightcove_entity_extra_field_info in ./
brightcove.module - Implements hook_entity_extra_field_info().
- StatusOverviewForm::buildForm in src/
Form/ StatusOverviewForm.php - Form constructor.
File
- src/
Playlist.php, line 10
Namespace
Drupal\brightcoveView source
class Playlist extends BrightcoveAPIWrapperPlaylist {
/**
* Override patch request to be able to alter the fields.
*/
public function patchJson() {
$data = parent::patchJSON();
// Remove fields which are not needed to be sent to Brightcove.
if (isset($data['id'])) {
unset($data['id']);
}
return $data;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Playlist:: |
public | function | Override patch request to be able to alter the fields. |