You are here

public function LdapQuery::addOrderBy in Lightweight Directory Access Protocol (LDAP) 8.4

Same name and namespace in other branches
  1. 8.3 ldap_query/src/Plugin/views/query/LdapQuery.php \Drupal\ldap_query\Plugin\views\query\LdapQuery::addOrderBy()

File

ldap_query/src/Plugin/views/query/LdapQuery.php, line 185

Class

LdapQuery
Views query plugin for an SQL query.

Namespace

Drupal\ldap_query\Plugin\views\query

Code

public function addOrderBy($table, $field, $order, $alias = '', $params = []) : void {
  $this->orderby[] = [
    'field' => $field,
    'direction' => $order,
  ];
}