function TableSort::getSort
Same name in other branches
- 9 core/lib/Drupal/Core/Utility/TableSort.php \Drupal\Core\Utility\TableSort::getSort()
- 8.9.x core/lib/Drupal/Core/Utility/TableSort.php \Drupal\Core\Utility\TableSort::getSort()
- 10 core/lib/Drupal/Core/Utility/TableSort.php \Drupal\Core\Utility\TableSort::getSort()
- 11.x core/lib/Drupal/Core/Utility/TableSort.php \Drupal\Core\Utility\TableSort::getSort()
Determine the current sort direction.
Parameters
$headers: An array of column headers in the format described in theme_table().
Return value
The current sort direction ("asc" or "desc").
1 call to TableSort::getSort()
- TableSort::init in includes/
tablesort.inc - Initializes the table sort context.
File
-
includes/
tablesort.inc, line 74
Class
- TableSort
- Query extender class for tablesort queries.
Code
protected function getSort() {
return tablesort_get_sort($this->header);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.