You are here

public function DatabaseStorageExpirable::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php \Drupal\Core\KeyValueStore\DatabaseStorageExpirable::__construct()
  2. 10 core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php \Drupal\Core\KeyValueStore\DatabaseStorageExpirable::__construct()

Overrides Drupal\Core\KeyValueStore\StorageBase::__construct().

Parameters

string $collection: The name of the collection holding key and value pairs.

\Drupal\Component\Serialization\SerializationInterface $serializer: The serialization class to use.

\Drupal\Core\Database\Connection $connection: The database connection to use.

string $table: The name of the SQL table to use, defaults to key_value_expire.

Overrides DatabaseStorage::__construct

File

core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php, line 28

Class

DatabaseStorageExpirable
Defines a default key/value store implementation for expiring items.

Namespace

Drupal\Core\KeyValueStore

Code

public function __construct($collection, SerializationInterface $serializer, Connection $connection, $table = 'key_value_expire') {
  parent::__construct($collection, $serializer, $connection, $table);
}