public static function BrightcoveUtil::getCmsApi in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/BrightcoveUtil.php \Drupal\brightcove\BrightcoveUtil::getCmsApi()
- 3.x src/BrightcoveUtil.php \Drupal\brightcove\BrightcoveUtil::getCmsApi()
Gets Brightcove CMS API.
Parameters
string $entity_id: BrightcoveAPIClient entity ID.
Return value
\Brightcove\API\CMS Initialized Brightcove CMS API.
20 calls to BrightcoveUtil::getCmsApi()
- BrightcoveClientQueueWorker::processItem in src/
Plugin/ QueueWorker/ BrightcoveClientQueueWorker.php - Works on a single queue item.
- BrightcovePlaylist::delete in src/
Entity/ BrightcovePlaylist.php - BrightcovePlaylist::save in src/
Entity/ BrightcovePlaylist.php - BrightcovePlaylistController::update in src/
Controller/ BrightcovePlaylistController.php - Menu callback to update the existing Playlist with the latest version.
- BrightcovePlaylistDeleteQueueWorker::processItem in src/
Plugin/ QueueWorker/ BrightcovePlaylistDeleteQueueWorker.php - Works on a single queue item.
File
- src/
BrightcoveUtil.php, line 110
Class
- BrightcoveUtil
- Utility class for Brightcove.
Namespace
Drupal\brightcoveCode
public static function getCmsApi($entity_id) {
// Create new \Brightcove\API\CMS object if it is not exists yet.
if (!isset(self::$cmsApis[$entity_id])) {
$client = self::getClient($entity_id);
self::$cmsApis[$entity_id] = new CMS($client, self::$apiClients[$entity_id]
->getAccountId());
}
return self::$cmsApis[$entity_id];
}