You are here

class Playlist in Brightcove Video Connect 8.2

Same name and namespace in other branches
  1. 8 src/Playlist.php \Drupal\brightcove\Playlist
  2. 3.x 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\brightcove
View 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

Namesort descending Modifiers Type Description Overrides
Playlist::patchJson public function Override patch request to be able to alter the fields.