public DatabaseStorage::__construct($collection, SerializationInterface$serializer, Connection $connection, $table = 'key_value')
Overrides Drupal\Core\KeyValueStore\StorageBase::__construct().
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.
Overrides StorageBase::__construct
public function __construct($collection, SerializationInterface $serializer, Connection $connection, $table = 'key_value') { parent::__construct($collection); $this->serializer = $serializer; $this->connection = $connection; $this->table = $table; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!KeyValueStore!DatabaseStorage.php/function/DatabaseStorage::__construct/8.1.x