protected function TableSortExtender::getSort

Determine the current sort direction.

Return value

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

See also

tablesort_get_sort()

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

File

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

Class

TableSortExtender
Query extender class for tablesort queries.

Namespace

Drupal\Core\Database\Query

Code

protected function getSort() {
  return tablesort_get_sort($this->header);
}