You are here

public function ContentHubConnectionManager::setClient in Acquia Content Hub 8.2

Sets the client.

It is acquired through ClientFactory:getClient() method. However this can also be FALSE, therefore it is recommended to make sure the client is bootstrapped before the connection manager is being used.

Parameters

\Acquia\ContentHubClient\ContentHubClient|false $client: The Content Hub client if it's already been configured, FALSE otherwise.

1 call to ContentHubConnectionManager::setClient()
ContentHubConnectionManager::initialize in src/ContentHubConnectionManager.php
Initializes the Connection Manager.

File

src/ContentHubConnectionManager.php, line 109

Class

ContentHubConnectionManager
Responsible for connection management actions.

Namespace

Drupal\acquia_contenthub

Code

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