public function MysqlDateSql::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/query/MysqlDateSql.php \Drupal\views\Plugin\views\query\MysqlDateSql::__construct()
- 9 core/modules/views/src/Plugin/views/query/MysqlDateSql.php \Drupal\views\Plugin\views\query\MysqlDateSql::__construct()
Constructs the MySQL-specific date sql class.
Parameters
\Drupal\Core\Database\Connection $database: The database connection.
File
- core/
modules/ views/ src/ Plugin/ views/ query/ MysqlDateSql.php, line 52
Class
- MysqlDateSql
- MySQL-specific date handling.
Namespace
Drupal\views\Plugin\views\queryCode
public function __construct(Connection $database) {
$this->database = $database;
}