protected function TableSortExtender::order

protected 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()

File

core/lib/Drupal/Core/Database/Query/TableSortExtender.php, line 96

Class

TableSortExtender
Query extender class for tablesort queries.

Namespace

Drupal\Core\Database\Query

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Query!TableSortExtender.php/function/TableSortExtender::order/8.1.x