public function GroupByNumeric::query in Zircon Profile 8
Same name in this branch
- 8 core/modules/views/src/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::query()
- 8 core/modules/views/src/Plugin/views/sort/GroupByNumeric.php \Drupal\views\Plugin\views\sort\GroupByNumeric::query()
- 8 core/modules/views/src/Plugin/views/argument/GroupByNumeric.php \Drupal\views\Plugin\views\argument\GroupByNumeric::query()
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/sort/GroupByNumeric.php \Drupal\views\Plugin\views\sort\GroupByNumeric::query()
Called to add the field to a query.
Overrides SortPluginBase::query
File
- core/
modules/ views/ src/ Plugin/ views/ sort/ GroupByNumeric.php, line 35 - Contains \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
->addOrderBy($this->tableAlias, $this->realField, $this->options['order'], NULL, $params);
}