You are here

public function RestfulDataProviderEFQ::defaultSortInfo in RESTful 7

Defines default sort fields if none are provided via the request URL.

Return value

array Array keyed by the public field name, and the order ('ASC' or 'DESC') as value.

1 call to RestfulDataProviderEFQ::defaultSortInfo()
RestfulDataProviderEFQ::queryForListSort in plugins/restful/RestfulDataProviderEFQ.php
Sort the query for list.
1 method overrides RestfulDataProviderEFQ::defaultSortInfo()
RestfulTestArticlesResource__1_1::defaultSortInfo in tests/modules/restful_test/plugins/restful/node/test_articles/1.1/RestfulTestArticlesResource__1_1.class.php
Overrides RestfulDataProviderEFQ::defaultSortInfo().

File

plugins/restful/RestfulDataProviderEFQ.php, line 98
Contains \RestfulDataProviderEFQ

Class

RestfulDataProviderEFQ
@file Contains \RestfulDataProviderEFQ

Code

public function defaultSortInfo() {
  return array(
    'id' => 'ASC',
  );
}