You are here

public function BrightcoveAPIClient::setClient in Brightcove Video Connect 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveAPIClient.php \Drupal\brightcove\Entity\BrightcoveAPIClient::setClient()
  2. 8 src/Entity/BrightcoveAPIClient.php \Drupal\brightcove\Entity\BrightcoveAPIClient::setClient()

Set Brightcove API client.

Parameters

\Brightcove\API\Client $client: The initialized Brightcove API Client.

Return value

$this

1 call to BrightcoveAPIClient::setClient()
BrightcoveAPIClient::authorizeClient in src/Entity/BrightcoveAPIClient.php
Authorize client with Brightcove API and store client on the entity.

File

src/Entity/BrightcoveAPIClient.php, line 246

Class

BrightcoveAPIClient
Defines the Brightcove API Client entity.

Namespace

Drupal\brightcove\Entity

Code

public function setClient(Client $client) {
  $this->client = $client;
  return $this;
}