function TableSortExtender::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Database/Query/TableSortExtender.php \Drupal\Core\Database\Query\TableSortExtender::__construct()
- 10 core/lib/Drupal/Core/Database/Query/TableSortExtender.php \Drupal\Core\Database\Query\TableSortExtender::__construct()
- 11.x core/lib/Drupal/Core/Database/Query/TableSortExtender.php \Drupal\Core\Database\Query\TableSortExtender::__construct()
Overrides SelectExtender::__construct
File
-
core/
lib/ Drupal/ Core/ Database/ Query/ TableSortExtender.php, line 16
Class
- TableSortExtender
- Query extender class for tablesort queries.
Namespace
Drupal\Core\Database\QueryCode
public function __construct(SelectInterface $query, Connection $connection) {
parent::__construct($query, $connection);
// Add convenience tag to mark that this is an extended query. We have to
// do this in the constructor to ensure that it is set before preExecute()
// gets called.
$this->addTag('tablesort');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.