function Schema::__construct
Same name in this branch
- 10 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::__construct()
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::__construct()
- 8.9.x core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::__construct()
- 11.x core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema::__construct()
- 11.x core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::__construct()
Overrides Schema::__construct
File
-
core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Schema.php, line 56
Class
- Schema
- PostgreSQL implementation of \Drupal\Core\Database\Schema.
Namespace
Drupal\pgsql\Driver\Database\pgsqlCode
public function __construct($connection) {
parent::__construct($connection);
// If the schema is not set in the connection options then schema defaults
// to public.
$this->defaultSchema = $connection->getConnectionOptions()['schema'] ?? 'public';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.