protected function Subscription::initialiseCacheBin in Acquia Connector 3.x
Function to check if an $cache is initialised.
1 call to Subscription::initialiseCacheBin()
- Subscription::isActive in src/
Subscription.php - Helper function to check if the site has an active subscription.
File
- src/
Subscription.php, line 108
Class
- Subscription
- Storage class for Acquia Subscriptions.
Namespace
Drupal\acquia_connectorCode
protected function initialiseCacheBin() {
if (empty($this->cache)) {
$cache = \Drupal::cache();
$this->cache = $cache;
}
}