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