You are here

public function BrightcoveVideoPlaylistCmsEntity::getPlayer in Brightcove Video Connect 8

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

Returns the player.

Return value

int Target ID of the Brightcove Player.

Overrides BrightcoveVideoPlaylistCMSEntityInterface::getPlayer

File

src/Entity/BrightcoveVideoPlaylistCmsEntity.php, line 15

Class

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

Namespace

Drupal\brightcove\Entity

Code

public function getPlayer() {
  return $this
    ->get('player')->target_id;
}