You are here

public function ViewsJsonQuery::build in Views Json Source 8

Same name and namespace in other branches
  1. 1.x src/Plugin/views/query/ViewsJsonQuery.php \Drupal\views_json_source\Plugin\views\query\ViewsJsonQuery::build()

Builds the necessary info to execute the query.

Overrides QueryPluginBase::build

File

src/Plugin/views/query/ViewsJsonQuery.php, line 117

Class

ViewsJsonQuery
Base query handler for views_json_source.

Namespace

Drupal\views_json_source\Plugin\views\query

Code

public function build(ViewExecutable $view) {
  $view
    ->initPager();

  // Let the pager modify the query to add limits.
  $view->pager
    ->query();
  $view->build_info['query'] = $this
    ->query();
  $view->build_info['query_args'] = [];
}