You are here

public function BrightcoveVideoPlaylistCmsEntity::setPlayer in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveVideoPlaylistCmsEntity.php \Drupal\brightcove\Entity\BrightcoveVideoPlaylistCmsEntity::setPlayer()
  2. 3.x 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);
}