You are here

public static function BrightcoveUtil::getClient in Brightcove Video Connect 8

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

Gets Brightcove client.

Parameters

string $entity_id: BrightcoveAPIClient entity ID.

Return value

\Brightcove\API\Client Loaded Brightcove client.

5 calls to BrightcoveUtil::getClient()
BrightcoveUtil::checkUpdatedVersion in src/BrightcoveUtil.php
Check updated version of the CMS entity.
BrightcoveUtil::getCmsApi in src/BrightcoveUtil.php
Gets Brightcove CMS API.
BrightcoveUtil::getDiApi in src/BrightcoveUtil.php
Gets Brightcove DI API.
BrightcoveUtil::getPmApi in src/BrightcoveUtil.php
Gets Brightcove PM API.
BrightcoveVideoController::ingestionCallback in src/Controller/BrightcoveVideoController.php
Ingestion callback for Brightcove.

File

src/BrightcoveUtil.php, line 96

Class

BrightcoveUtil
Utility class for Brightcove.

Namespace

Drupal\brightcove

Code

public static function getClient($entity_id) {
  $api_client = self::getApiClient($entity_id);
  return $api_client
    ->getClient();
}