You are here

public function BrightcovePlaylistInterface::setType in Brightcove Video Connect 8

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

Sets the playlist's type.

Parameters

string $type: The type of the playlist, either BrightcovePlaylist::TYPE_MANUAL or BrightcovePlaylist::SMART.

Return value

\Drupal\brightcove\BrightcovePlaylistInterface The called Brightcove Playlist.

Throws

\InvalidArgumentException If the value input is inappropriate.

1 method overrides BrightcovePlaylistInterface::setType()
BrightcovePlaylist::setType in src/Entity/BrightcovePlaylist.php
Sets the playlist's type.

File

src/BrightcovePlaylistInterface.php, line 33

Class

BrightcovePlaylistInterface
Provides an interface for defining Brightcove Playlists.

Namespace

Drupal\brightcove

Code

public function setType($type);