You are here

public function PostgresqlDateSql::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php \Drupal\views\Plugin\views\query\PostgresqlDateSql::__construct()
  2. 9 core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php \Drupal\views\Plugin\views\query\PostgresqlDateSql::__construct()

Constructs the PostgreSQL-specific date sql class.

Parameters

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

File

core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php, line 59

Class

PostgresqlDateSql
PostgreSQL-specific date handling.

Namespace

Drupal\views\Plugin\views\query

Code

public function __construct(Connection $database) {
  $this->database = $database;
}