KeyValueFactoryInterface.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\Core\KeyValueStoreFile
core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.phpView source
<?php
namespace Drupal\Core\KeyValueStore;
/**
* Defines the key/value store factory interface.
*/
interface KeyValueFactoryInterface {
/**
* Constructs a new key/value store for a given collection name.
*
* @param string $collection
* The name of the collection holding key and value pairs.
*
* @return \Drupal\Core\KeyValueStore\KeyValueStoreInterface
* A key/value store implementation for the given $collection.
*/
public function get($collection);
}
Interfaces
Name | Description |
---|---|
KeyValueFactoryInterface | Defines the key/value store factory interface. |