You are here

public function BrightcoveVideoPlaylistCmsEntity::setPlayer in Brightcove Video Connect 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveVideoPlaylistCmsEntity.php \Drupal\brightcove\Entity\BrightcoveVideoPlaylistCmsEntity::setPlayer()
  2. 8 src/Entity/BrightcoveVideoPlaylistCmsEntity.php \Drupal\brightcove\Entity\BrightcoveVideoPlaylistCmsEntity::setPlayer()

Sets the player.

Parameters

int $player: The Brightcove Player's entity ID.

Return value

\Drupal\brightcove\BrightcoveVideoPlaylistCMSEntityInterface The called Brightcove Video or Playlist.

Overrides BrightcoveVideoPlaylistCMSEntityInterface::setPlayer

File

src/Entity/BrightcoveVideoPlaylistCmsEntity.php, line 22

Class

BrightcoveVideoPlaylistCmsEntity
Common base class for CMS entities like Video and Playlist.

Namespace

Drupal\brightcove\Entity

Code

public function setPlayer($player) {
  return $this
    ->set('player', $player);
}