public function TableSortExtender::__construct

Overrides SelectExtender::__construct

File

drupal/core/lib/Drupal/Core/Database/Query/TableSortExtender.php, line 22
Definition of Drupal\Core\Database\Query\TableSortExtender.

Class

TableSortExtender
Query extender class for tablesort queries.

Namespace

Drupal\Core\Database\Query

Code

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');
}