interface KeyValueFactoryInterface in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php \Drupal\Core\KeyValueStore\KeyValueFactoryInterface
Defines the key/value store factory interface.
Hierarchy
- interface \Drupal\Core\KeyValueStore\KeyValueFactoryInterface
Expanded class hierarchy of KeyValueFactoryInterface
All classes that implement KeyValueFactoryInterface
1 file declares its use of KeyValueFactoryInterface
- State.php in lib/
Drupal/ Core/ State/ State.php - Contains \Drupal\Core\State\State.
File
- lib/
Drupal/ Core/ KeyValueStore/ KeyValueFactoryInterface.php, line 13 - Contains \Drupal\Core\KeyValueStore\KeyValueFactoryInterface.
Namespace
Drupal\Core\KeyValueStoreView source
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);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyValueFactoryInterface:: |
public | function | Constructs a new key/value store for a given collection name. | 3 |