public function DatabaseStorage::__construct

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Core/Config/DatabaseStorage.php \Drupal\Core\Config\DatabaseStorage::__construct()
  2. 9.x drupal/core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php \Drupal\Core\KeyValueStore\DatabaseStorage::__construct()

Constructs a new DatabaseStorage controller.

Parameters

Drupal\Core\Database\Connection $connection: A Database connection to use for reading and writing configuration data.

string $table: A database table name to store configuration data in.

array $options: (optional) Any additional database connection options to use in queries.

File

drupal/core/lib/Drupal/Core/Config/DatabaseStorage.php, line 50
Definition of Drupal\Core\Config\DatabaseStorage.

Class

DatabaseStorage
Defines the Database storage controller.

Namespace

Drupal\Core\Config

Code

public function __construct(Connection $connection, $table, array $options = array()) {
  $this->connection = $connection;
  $this->table = $table;
  $this->options = $options;
}