You are here

protected function TableSortExtender::order in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Query/TableSortExtender.php \Drupal\Core\Database\Query\TableSortExtender::order()

Determine the current sort criterion.

Return value

An associative array describing the criterion, containing the keys:

  • "name": The localized title of the table column.
  • "sql": The name of the database field to sort on.

See also

tablesort_get_order()

1 call to TableSortExtender::order()
TableSortExtender::init in core/lib/Drupal/Core/Database/Query/TableSortExtender.php
Initialize the table sort context.

File

core/lib/Drupal/Core/Database/Query/TableSortExtender.php, line 101
Contains \Drupal\Core\Database\Query\TableSortExtender.

Class

TableSortExtender
Query extender class for tablesort queries.

Namespace

Drupal\Core\Database\Query

Code

protected function order() {
  return tablesort_get_order($this->header);
}