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/argument/GroupByNumeric.php \Drupal\views\Plugin\views\argument\GroupByNumeric::query()
Set up the query for this argument.
The argument sent may be found at $this->argument.
Overrides ArgumentPluginBase::query
File
- core/
modules/ views/ src/ Plugin/ views/ argument/ GroupByNumeric.php, line 19 - Contains \Drupal\views\Plugin\views\argument\GroupByNumeric.
Class
- GroupByNumeric
- Simple handler for arguments using group by.
Namespace
Drupal\views\Plugin\views\argumentCode
public function query($group_by = FALSE) {
$this
->ensureMyTable();
$field = $this
->getField();
$placeholder = $this
->placeholder();
$this->query
->addHavingExpression(0, "{$field} = {$placeholder}", array(
$placeholder => $this->argument,
));
}