public function GroupByNumeric::query in Views (for Drupal 7) 8.3
Same name in this branch
- 8.3 lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::query()
- 8.3 lib/Drupal/views/Plugin/views/sort/GroupByNumeric.php \Drupal\views\Plugin\views\sort\GroupByNumeric::query()
- 8.3 lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php \Drupal\views\Plugin\views\argument\GroupByNumeric::query()
Called to add the field to a query.
Overrides SortPluginBase::query
File
- lib/
Drupal/ views/ Plugin/ views/ sort/ GroupByNumeric.php, line 33 - Definition of Drupal\views\Plugin\views\sort\GroupByNumeric.
Class
- GroupByNumeric
- Handler for GROUP BY on simple numeric fields.
Namespace
Drupal\views\Plugin\views\sortCode
public function query() {
$this
->ensureMyTable();
$params = array(
'function' => $this->options['group_type'],
);
$this->query
->add_orderby($this->tableAlias, $this->realField, $this->options['order'], NULL, $params);
}