You are here

public function CountryItem::validate in Country 8

Skip validation if no options have been chosen so we can use it as a non-filter.

Overrides InOperator::validate

File

src/Plugin/views/filter/CountryItem.php, line 182

Class

CountryItem
Filter by country ISO2.

Namespace

Drupal\country\Plugin\views\filter

Code

public function validate() {
  if (!empty($this->value)) {
    parent::validate();
  }
}