protected function TableSortExtender::init

Initialize the table sort context.

1 call to TableSortExtender::init()
TableSortExtender::orderByHeader in drupal/core/lib/Drupal/Core/Database/Query/TableSortExtender.php
Order the query based on a header array.

File

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

Class

TableSortExtender
Query extender class for tablesort queries.

Namespace

Drupal\Core\Database\Query

Code

protected function init() {
  $ts = $this
    ->order();
  $ts['sort'] = $this
    ->getSort();
  $ts['query'] = $this
    ->getQueryParameters();
  return $ts;
}