You are here

function efq_views_plugin_query::build in EntityFieldQuery Views Backend 7

Builds the necessary info to execute the query.

Overrides views_plugin_query::build

File

./efq_views_plugin_query.inc, line 105

Class

efq_views_plugin_query

Code

function build(&$view) {
  $view
    ->init_pager($view);

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