function FilterPluginBase::can_build_group

Determine if a filter can be converted into a group. Only exposed filters with operators available can be converted into groups.

1 call to FilterPluginBase::can_build_group()
FilterPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php, line 175
Definition of Drupal\views\Plugin\views\filter\FilterPluginBase.

Class

FilterPluginBase
Base class for filters.

Namespace

Drupal\views\Plugin\views\filter

Code

function can_build_group() {
  return $this
    ->isExposed() && count($this
    ->operator_options()) > 0;
}