public function KeyValueFactoryInterface::get in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php \Drupal\Core\KeyValueStore\KeyValueFactoryInterface::get()
 
Constructs a new 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\KeyValueStoreInterface A key/value store implementation for the given $collection.
3 methods override KeyValueFactoryInterface::get()
- KeyValueDatabaseFactory::get in core/
lib/ Drupal/ Core/ KeyValueStore/ KeyValueDatabaseFactory.php  - Constructs a new key/value store for a given collection name.
 - KeyValueFactory::get in core/
lib/ Drupal/ Core/ KeyValueStore/ KeyValueFactory.php  - Constructs a new key/value store for a given collection name.
 - KeyValueMemoryFactory::get in core/
lib/ Drupal/ Core/ KeyValueStore/ KeyValueMemoryFactory.php  - Constructs a new key/value store for a given collection name.
 
File
- core/
lib/ Drupal/ Core/ KeyValueStore/ KeyValueFactoryInterface.php, line 24  - Contains \Drupal\Core\KeyValueStore\KeyValueFactoryInterface.
 
Class
- KeyValueFactoryInterface
 - Defines the key/value store factory interface.
 
Namespace
Drupal\Core\KeyValueStoreCode
public function get($collection);