class KeyValueDatabaseSortedSetFactory in Key-value Extensions 8
Hierarchy
- class \Drupal\key_value\KeyValueStore\KeyValueDatabaseSortedSetFactory implements KeyValueSortedSetFactoryInterface
Expanded class hierarchy of KeyValueDatabaseSortedSetFactory
1 string reference to 'KeyValueDatabaseSortedSetFactory'
1 service uses KeyValueDatabaseSortedSetFactory
File
- src/
KeyValueStore/ KeyValueDatabaseSortedSetFactory.php, line 8
Namespace
Drupal\key_value\KeyValueStoreView source
class KeyValueDatabaseSortedSetFactory implements KeyValueSortedSetFactoryInterface {
/**
* @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 DatabaseStorageSortedSet($collection, $this->serializer, $this->connection);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyValueDatabaseSortedSetFactory:: |
protected | property | ||
KeyValueDatabaseSortedSetFactory:: |
protected | property | ||
KeyValueDatabaseSortedSetFactory:: |
public | function |
Overrides KeyValueSortedSetFactoryInterface:: |
|
KeyValueDatabaseSortedSetFactory:: |
function |