Overrides Drupal\Core\KeyValueStore\StorageBase::__construct().
Parameters
string $collection:
The name of the collection holding key and value pairs.
array $options:
An associative array of options for the key/value storage collection.
Keys used:
- connection: (optional) The database connection to use for storing the
data. Defaults to the current connection.
- table: (optional) The name of the SQL table to use. Defaults to
key_value_expire.
Overrides DatabaseStorage::__construct
File
- drupal/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php, line 54
- Contains Drupal\Core\KeyValueStore\DatabaseStorageExpirable.
Class
- DatabaseStorageExpirable
- Defines a default key/value store implementation for expiring items.
Namespace
Drupal\Core\KeyValueStore
Code
public function __construct($collection, Connection $connection, $table = 'key_value_expire') {
parent::__construct($collection, $connection, $table);
}