You are here

function FilterPluginBase::can_group in Views (for Drupal 7) 8.3

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::can_group()
GroupByNumeric::can_group in lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php
Can this filter be used in OR groups?

File

lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php, line 1386
Definition of Drupal\views\Plugin\views\filter\FilterPluginBase.

Class

FilterPluginBase
Base class for filters.

Namespace

Drupal\views\Plugin\views\filter

Code

function can_group() {
  return TRUE;
}