protected function TableSortExtender::getSort

protected TableSortExtender::getSort()

Determine the current sort direction.

Return value

The current sort direction ("asc" or "desc").

See also

tablesort_get_sort()

File

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

Class

TableSortExtender
Query extender class for tablesort queries.

Namespace

Drupal\Core\Database\Query

Code

protected function getSort() {
  return tablesort_get_sort($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::getSort/8.1.x