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);
}
doc_Drupal
2016-10-29 09:46:13
Comments
Leave a Comment

Please login to continue.