function KeyValueFactoryInterface::get

Same name in other branches
  1. 9 core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php \Drupal\Core\KeyValueStore\KeyValueFactoryInterface::get()
  2. 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php \Drupal\Core\KeyValueStore\KeyValueFactoryInterface::get()
  3. 10 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
KeyValueFactory::get in core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php
KeyValueMemoryFactory::get in core/lib/Drupal/Core/KeyValueStore/KeyValueMemoryFactory.php

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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.