You are here

class Video in Brightcove Video Connect 3.x

Same name and namespace in other branches
  1. 8.2 src/Video.php \Drupal\brightcove\Video
  2. 8 src/Video.php \Drupal\brightcove\Video

Override Brightcove API Wrapper's Video class.

Hierarchy

  • class \Drupal\brightcove\Video extends \Brightcove\Item\Video\Video

Expanded class hierarchy of Video

5 string references to 'Video'
BrightcoveVideoForm::buildForm in src/Form/BrightcoveVideoForm.php
Form constructor.
BrightcoveVideoListBuilder::buildHeader in src/BrightcoveVideoListBuilder.php
Builds the header row for the entity listing.
brightcove_entity_extra_field_info in ./brightcove.module
Implements hook_entity_extra_field_info().
StatusOverviewForm::buildForm in src/Form/StatusOverviewForm.php
Form constructor.
views.view.brightcove_video.yml in config/install/views.view.brightcove_video.yml
config/install/views.view.brightcove_video.yml

File

src/Video.php, line 10

Namespace

Drupal\brightcove
View source
class Video extends BrightcoveAPIWrapperVideo {

  /**
   * 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['account_id'])) {
      unset($data['account_id']);
    }
    if (isset($data['id'])) {
      unset($data['id']);
    }
    return $data;
  }

}

Members

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