public function QueryTest::add_orderby in Views (for Drupal 7) 8.3
File
- tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ query/ QueryTest.php, line 54 - Definition of Drupal\views_test_data\Plugin\views\query\QueryTest.
Class
- QueryTest
- Defines a query test plugin.
Namespace
Drupal\views_test_data\Plugin\views\queryCode
public function add_orderby($table, $field = NULL, $order = 'ASC', $alias = '', $params = array()) {
$this->orderBy = array(
'field' => $field,
'order' => $order,
);
}