You are here

public function BrightcovePlaylist::setType in Brightcove Video Connect 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcovePlaylist.php \Drupal\brightcove\Entity\BrightcovePlaylist::setType()
  2. 8 src/Entity/BrightcovePlaylist.php \Drupal\brightcove\Entity\BrightcovePlaylist::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.

Overrides BrightcovePlaylistInterface::setType

File

src/Entity/BrightcovePlaylist.php, line 172

Class

BrightcovePlaylist
Defines the Brightcove Playlist.

Namespace

Drupal\brightcove\Entity

Code

public function setType($type) {
  return $this
    ->set('type', $type);
}