You are here

protected function AdministrativeArea::canBuildGroup in Address 8

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

Overrides FilterPluginBase::canBuildGroup

File

src/Plugin/views/filter/AdministrativeArea.php, line 121

Class

AdministrativeArea
Filter by administrative area.

Namespace

Drupal\address\Plugin\views\filter

Code

protected function canBuildGroup() {

  // To be able to define a group, you have to be able to select values
  // while configuring the filter. But this filter doesn't let you select
  // values until a country is selected, so the group filter functionality
  // is impossible.
  return FALSE;
}