public function LdapQuery::build in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.3 ldap_query/src/Plugin/views/query/LdapQuery.php \Drupal\ldap_query\Plugin\views\query\LdapQuery::build()
Builds the necessary info to execute the query.
Parameters
view $view: The view which is executed.
Overrides QueryPluginBase::build
File
- ldap_query/
src/ Plugin/ views/ query/ LdapQuery.php, line 49
Class
- LdapQuery
- Views query plugin for an SQL query.
Namespace
Drupal\ldap_query\Plugin\views\queryCode
public function build(ViewExecutable $view) : void {
// Store the view in the object to be able to use it later.
$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
->query(TRUE);
}