You are here

public function ContentHubConnectionManager::initialize in Acquia Content Hub 8.2

Initializes the Connection Manager.

12 calls to ContentHubConnectionManager::initialize()
ContentHubConnectionManager::addDefaultFilterToWebhook in src/ContentHubConnectionManager.php
Adds default filter to a Webhook.
ContentHubConnectionManager::checkClient in src/ContentHubConnectionManager.php
Check if client successfully registered.
ContentHubConnectionManager::createDefaultFilter in src/ContentHubConnectionManager.php
Creates default filter for the site.
ContentHubConnectionManager::registerWebhook in src/ContentHubConnectionManager.php
Registers a webhook if it has not been registered already.
ContentHubConnectionManager::removeWebhookSuppression in src/ContentHubConnectionManager.php
Remove webhook suppression.

... See full list

File

src/ContentHubConnectionManager.php, line 92

Class

ContentHubConnectionManager
Responsible for connection management actions.

Namespace

Drupal\acquia_contenthub

Code

public function initialize() {
  if (empty($this->client)) {
    $client = $this->factory
      ->getClient();
    $this
      ->setClient($client);
  }
}