public static function BrightcoveUtil::getApiClient in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/BrightcoveUtil.php \Drupal\brightcove\BrightcoveUtil::getApiClient()
- 3.x src/BrightcoveUtil.php \Drupal\brightcove\BrightcoveUtil::getApiClient()
Gets BrightcoveAPIClient entity.
Parameters
string $entity_id: The entity ID of the BrightcoveAPIClient.
Return value
\Drupal\brightcove\Entity\BrightcoveAPIClient Loaded BrightcoveAPIClient object.
5 calls to BrightcoveUtil::getApiClient()
- BrightcoveUtil::getClient in src/
BrightcoveUtil.php - Gets Brightcove client.
- BrightcoveUtil::getDefaultPlayer in src/
BrightcoveUtil.php - Helper function to get default player for the given entity.
- BrightcoveVideo::delete in src/
Entity/ BrightcoveVideo.php - BrightcoveVideoController::ingestionCallback in src/
Controller/ BrightcoveVideoController.php - Ingestion callback for Brightcove.
- brightcove_brightcove_playlist_view in ./
brightcove.module - Implements hook_ENTITY_TYPE_view().
File
- src/
BrightcoveUtil.php, line 78
Class
- BrightcoveUtil
- Utility class for Brightcove.
Namespace
Drupal\brightcoveCode
public static function getApiClient($entity_id) {
// Load BrightcoveAPIClient if it wasn't already.
if (!isset(self::$apiClients[$entity_id])) {
self::$apiClients[$entity_id] = BrightcoveAPIClient::load($entity_id);
}
return self::$apiClients[$entity_id];
}