function protected function ProviderBase::getKeyValueExpirable

8.x-3.x ProviderBase.php protected ProviderBase::getKeyValueExpirable()

Retrieves a expirable key/value storage instance.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface An expirable key/value storage instance.

Class

ProviderBase
CDN Provider base class.

Namespace

Drupal\bootstrap\Plugin\Provider

Source src/Plugin/Provider/ProviderBase.php (line 463)

protected function getKeyValueExpirable() {
  if (!isset($this->keyValueExpirable)) {
    $this->keyValueExpirable = \Drupal::keyValueExpirable($this->getCacheId());
  }
  return $this->keyValueExpirable;
}