TableSortExtender::order

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部