You are here

public function GroupByNumeric::canGroup in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::canGroup()
  2. 9 core/modules/views/src/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::canGroup()

Can this filter be used in OR groups?

Some filters have complicated where clauses that cannot be easily used with OR groups. Some filters must also use HAVING which also makes them not groupable. These filters will end up in a special group if OR grouping is in use.

Return value

bool

Overrides FilterPluginBase::canGroup

File

core/modules/views/src/Plugin/views/filter/GroupByNumeric.php, line 56

Class

GroupByNumeric
Simple filter to handle greater than/less than filters.

Namespace

Drupal\views\Plugin\views\filter

Code

public function canGroup() {
  return FALSE;
}