You are here

public function ViewsJsonSort::query in Views Json Source 1.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/sort/ViewsJsonSort.php \Drupal\views_json_source\Plugin\views\sort\ViewsJsonSort::query()

Called to add the sort to a query.

Overrides SortPluginBase::query

File

src/Plugin/views/sort/ViewsJsonSort.php, line 41

Class

ViewsJsonSort
Base sort handler for views_json_source.

Namespace

Drupal\views_json_source\Plugin\views\sort

Code

public function query() {
  $this->query
    ->addOrderBy(NULL, $this->options['key'], $this->options['order']);
}