public function ContentHubSubscription::getSettings in Acquia Content Hub 8
Obtains the Content Hub Subscription Settings.
Return value
\Acquia\ContentHubClient\Settings|bool The Settings of the Content Hub Subscription if all is fine, FALSE otherwise.
2 calls to ContentHubSubscription::getSettings()
- ContentHubSubscription::regenerateSharedSecret in src/
ContentHubSubscription.php - Regenerates the Subscription's Shared Secret.
- ContentHubSubscription::updateSharedSecret in src/
ContentHubSubscription.php - Updates the locally stored shared secret.
File
- src/
ContentHubSubscription.php, line 104
Class
- ContentHubSubscription
- Handles operations on the Acquia Content Hub Subscription.
Namespace
Drupal\acquia_contenthubCode
public function getSettings() {
if ($this->settings = $this->clientManager
->createRequest('getSettings')) {
$shared_secret = $this->settings
->getSharedSecret();
$this->state
->set('acquia_contenthub.shared_secret', $shared_secret);
return $this->settings;
}
return FALSE;
}