public function Subscription::hasCredentials in Acquia Connector 8.2
Same name and namespace in other branches
- 8 src/Subscription.php \Drupal\acquia_connector\Subscription::hasCredentials()
- 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_connectorCode
public function hasCredentials() {
$storage = new Storage();
return $storage
->getIdentifier() && $storage
->getKey();
}