You are here

public function BrightcovePlaylist::setVideos in Brightcove Video Connect 8

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

Sets the playlist's videos.

Parameters

array $videos: The videos on the playlist. Array of ['target_id' => int] items.

Return value

\Drupal\brightcove\BrightcovePlaylistInterface The called Brightcove Playlist.

Overrides BrightcovePlaylistInterface::setVideos

1 call to BrightcovePlaylist::setVideos()
BrightcovePlaylist::save in src/Entity/BrightcovePlaylist.php

File

src/Entity/BrightcovePlaylist.php, line 222

Class

BrightcovePlaylist
Defines the Brightcove Playlist.

Namespace

Drupal\brightcove\Entity

Code

public function setVideos(array $videos) {
  $this
    ->set('videos', $videos);
  return $this;
}