You are here

public function ContentHubExportQueueWorker::initializeClient in Acquia Content Hub 8.2

Initializes the Connection Manager.

1 call to ContentHubExportQueueWorker::initializeClient()
ContentHubExportQueueWorker::processItem in modules/acquia_contenthub_publisher/src/Plugin/QueueWorker/ContentHubExportQueueWorker.php
This method return values will be used within ContentHubExportQueue. Different return values will log different messages and will indicate different behaviours: return FALSE; => Error processing entities, queue item not deleted. return 0; => No…

File

modules/acquia_contenthub_publisher/src/Plugin/QueueWorker/ContentHubExportQueueWorker.php, line 149

Class

ContentHubExportQueueWorker
Acquia ContentHub queue worker.

Namespace

Drupal\acquia_contenthub_publisher\Plugin\QueueWorker

Code

public function initializeClient() : void {
  if (empty($this->client)) {
    $this->client = $this->factory
      ->getClient();
  }
}