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
- set_count_field: Reset the count field so we get the right paging.
Return value
The alias used to get the number of records (count) for this entry.
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, line 806
- Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.
Class
- ArgumentPluginBase
- Base class for arguments.
Namespace
Drupal\views\Plugin\views\argument
Code
protected function summaryQuery() {
$this
->ensureMyTable();
$this->base_alias = $this->query
->addField($this->tableAlias, $this->realField);
$this
->summaryNameField();
return $this
->summaryBasics();
}