You are here

public function Subscription::hasCredentials in Acquia Connector 8

Same name and namespace in other branches
  1. 8.2 src/Subscription.php \Drupal\acquia_connector\Subscription::hasCredentials()
  2. 3.x src/Subscription.php \Drupal\acquia_connector\Subscription::hasCredentials()

Helper function to check if an identifier and key exist.

2 calls to Subscription::hasCredentials()
Subscription::isActive in src/Subscription.php
Helper function to check if the site has an active subscription.
Subscription::update in src/Subscription.php
Get subscription status from Acquia, and store the result.

File

src/Subscription.php, line 93

Class

Subscription
Storage class for Acquia Subscriptions.

Namespace

Drupal\acquia_connector

Code

public function hasCredentials() {
  $storage = new Storage();
  return $storage
    ->getIdentifier() && $storage
    ->getKey();
}