class KeyValueDatabaseListFactory in Key-value Extensions 8
Hierarchy
- class \Drupal\key_value\KeyValueStore\KeyValueDatabaseListFactory implements KeyValueListFactoryInterface
Expanded class hierarchy of KeyValueDatabaseListFactory
1 string reference to 'KeyValueDatabaseListFactory'
1 service uses KeyValueDatabaseListFactory
File
- src/
KeyValueStore/ KeyValueDatabaseListFactory.php, line 8
Namespace
Drupal\key_value\KeyValueStoreView source
class KeyValueDatabaseListFactory implements KeyValueListFactoryInterface {
/**
* @var \Drupal\Component\Serialization\SerializationInterface
*/
protected $serializer;
/**
* @var \Drupal\Core\Database\Connection
*/
protected $connection;
/**
* @param \Drupal\Component\Serialization\SerializationInterface $serializer
* @param \Drupal\Core\Database\Connection $connection
*/
function __construct(SerializationInterface $serializer, Connection $connection) {
$this->serializer = $serializer;
$this->connection = $connection;
}
/**
* {@inheritdoc}
*/
public function get($collection) {
return new DatabaseStorageList($collection, $this->serializer, $this->connection);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyValueDatabaseListFactory:: |
protected | property | ||
KeyValueDatabaseListFactory:: |
protected | property | ||
KeyValueDatabaseListFactory:: |
public | function |
Overrides KeyValueListFactoryInterface:: |
|
KeyValueDatabaseListFactory:: |
function |