You are here

public function BrightcoveTextTrack::setWebVttFile in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveTextTrack.php \Drupal\brightcove\Entity\BrightcoveTextTrack::setWebVttFile()
  2. 3.x src/Entity/BrightcoveTextTrack.php \Drupal\brightcove\Entity\BrightcoveTextTrack::setWebVttFile()

Sets the WebVTT file.

Parameters

array $file: The WebVTT file entity.

Return value

\Drupal\brightcove\BrightcoveTextTrackInterface The called BrightcoveTextTrack entity.

Overrides BrightcoveTextTrackInterface::setWebVttFile

File

src/Entity/BrightcoveTextTrack.php, line 86

Class

BrightcoveTextTrack
Defines the Brightcove Text Track entity.

Namespace

Drupal\brightcove\Entity

Code

public function setWebVttFile(array $file) {
  return $this
    ->set('webvtt_file', $file);
}