public static function BrightcovePlayer::loadByPlayerId in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcovePlayer.php \Drupal\brightcove\Entity\BrightcovePlayer::loadByPlayerId()
- 3.x src/Entity/BrightcovePlayer.php \Drupal\brightcove\Entity\BrightcovePlayer::loadByPlayerId()
Helper function to load entity by the Brightcove player ID.
Parameters
string $player_id: The Brightcove ID of the player.
Return value
\Drupal\brightcove\Entity\BrightcovePlayer The loaded BrightcovePlayer.
3 calls to BrightcovePlayer::loadByPlayerId()
- BrightcovePlayerDeleteQueueWorker::processItem in src/
Plugin/ QueueWorker/ BrightcovePlayerDeleteQueueWorker.php - Works on a single queue item.
- brightcove_brightcove_playlist_view in ./
brightcove.module - Implements hook_ENTITY_TYPE_view().
- brightcove_brightcove_video_view in ./
brightcove.module - Implements hook_ENTITY_TYPE_view().
File
- src/
Entity/ BrightcovePlayer.php, line 268
Class
- BrightcovePlayer
- Defines the Brightcove Player.
Namespace
Drupal\brightcove\EntityCode
public static function loadByPlayerId($player_id) {
$eq = \Drupal::entityQuery('brightcove_player');
$player = $eq
->condition('player_id', $player_id)
->execute();
return self::load(reset($player));
}