function FilterPluginBase::canGroup
Same name in other branches
- 9 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::canGroup()
- 10 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::canGroup()
- 11.x core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::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
1 method overrides FilterPluginBase::canGroup()
- GroupByNumeric::canGroup in core/
modules/ views/ src/ Plugin/ views/ filter/ GroupByNumeric.php - Can this filter be used in OR groups?
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php, line 1559
Class
- FilterPluginBase
- Base class for Views filters handler plugins.
Namespace
Drupal\views\Plugin\views\filterCode
public function canGroup() {
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.