You are here

public function KeyValueDatabaseListFactory::get in Key-value Extensions 8

Parameters

string $collection:

Return value

\Drupal\key_value\KeyValueStore\KeyValueStoreListInterface

Overrides KeyValueListFactoryInterface::get

File

src/KeyValueStore/KeyValueDatabaseListFactory.php, line 32

Class

KeyValueDatabaseListFactory

Namespace

Drupal\key_value\KeyValueStore

Code

public function get($collection) {
  return new DatabaseStorageList($collection, $this->serializer, $this->connection);
}