KeyValueFactoryInterface::get

public KeyValueFactoryInterface::get($collection)

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.

File

core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php, line 19

Class

KeyValueFactoryInterface
Defines the key/value store factory interface.

Namespace

Drupal\Core\KeyValueStore

Code

public function get($collection);
doc_Drupal
2016-10-29 09:21:49
Comments
Leave a Comment

Please login to continue.