public function KeyValueNullExpirableFactory::get in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueNullExpirableFactory::get()
Constructs a new expirable key/value store for a given collection name.
Parameters
string $collection: The name of the collection holding key and value pairs.
Return value
\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface An expirable key/value store implementation for the given $collection.
Overrides KeyValueExpirableFactoryInterface::get
File
- core/
lib/ Drupal/ Core/ KeyValueStore/ KeyValueNullExpirableFactory.php, line 18 - Contains \Drupal\Core\KeyValueStore\KeyValueNullExpirableFactory.
Class
- KeyValueNullExpirableFactory
- Defines the key/value store factory for the null backend.
Namespace
Drupal\Core\KeyValueStoreCode
public function get($collection) {
return new NullStorageExpirable($collection);
}