function ArgumentPluginBase::summaryQuery
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summaryQuery()
Build the info for the summary query.
This must:
- addGroupBy: group on this field in order to create summaries.
- addField: add a 'num_nodes' field for the count. Usually it will be a count on $view->base_field
- setCountField: Reset the count field so we get the right paging.
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php, line 863
Class
- ArgumentPluginBase
- Base class for argument (contextual filter) handler plugins.
Namespace
Drupal\views\Plugin\views\argumentCode
protected function summaryQuery() {
$this->ensureMyTable();
// Add the field.
$this->base_alias = $this->query
->addField($this->tableAlias, $this->realField);
$this->summaryNameField();
$this->summaryBasics();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.