public function Xml::build in Views XML Backend 8
Builds the necessary info to execute the query.
Parameters
view $view: The view which is executed.
Overrides QueryPluginBase::build
File
- src/
Plugin/ views/ query/ Xml.php, line 366 - Contains \Drupal\views_xml_backend\Plugin\views\query\Xml.
Class
- Xml
- Views query plugin for an XML query.
Namespace
Drupal\views_xml_backend\Plugin\views\queryCode
public function build(ViewExecutable $view) {
$this->view = $view;
$view
->initPager();
// Let the pager modify the query to add limits.
$view->pager
->query();
$view->build_info['query'] = $this
->query();
$view->build_info['count_query'] = '';
$this->livePreview = !empty($view->live_preview);
}