function KeyValueDatabaseExpirableFactory::get
Same name in other branches
- 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory::get()
- 10 core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory::get()
- 11.x core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory::get()
Overrides KeyValueExpirableFactoryInterface::get
File
-
core/
lib/ Drupal/ Core/ KeyValueStore/ KeyValueDatabaseExpirableFactory.php, line 50
Class
- KeyValueDatabaseExpirableFactory
- Defines the key/value store factory for the database backend.
Namespace
Drupal\Core\KeyValueStoreCode
public function get($collection) {
if (!isset($this->storages[$collection])) {
$this->storages[$collection] = new DatabaseStorageExpirable($collection, $this->serializer, $this->connection);
}
return $this->storages[$collection];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.