You are here

public function ContentHubSubscription::getClients in Acquia Content Hub 8

Returns all Clients attached to this subscription.

Return value

array|bool An array of Client's data: (uuid, name) pairs, FALSE otherwise.

File

src/ContentHubSubscription.php, line 173

Class

ContentHubSubscription
Handles operations on the Acquia Content Hub Subscription.

Namespace

Drupal\acquia_contenthub

Code

public function getClients() {
  if ($this->settings) {
    return $this->settings
      ->getClients();
  }
  else {
    if ($settings = $this->clientManager
      ->createRequest('getSettings')) {
      return $settings
        ->getClients();
    }
    return FALSE;
  }
}