public function BrightcovePlaylist::setVideos in Brightcove Video Connect 3.x
Same name and namespace in other branches
- 8.2 src/Entity/BrightcovePlaylist.php \Drupal\brightcove\Entity\BrightcovePlaylist::setVideos()
- 8 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\EntityCode
public function setVideos(array $videos) {
$this
->set('videos', $videos);
return $this;
}