function KeyValueNullExpirableFactory::get

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueNullExpirableFactory::get()
  2. 10 core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueNullExpirableFactory::get()
  3. 11.x core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueNullExpirableFactory::get()

Overrides KeyValueExpirableFactoryInterface::get

File

core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php, line 13

Class

KeyValueNullExpirableFactory
Defines the key/value store factory for the null backend.

Namespace

Drupal\Core\KeyValueStore

Code

public function get($collection) {
    return new NullStorageExpirable($collection);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.