You are here

public function PublishedOrHasRoles::validate in Views Published or Roles 8

Skip validation if no options have been chosen.

Overrides FilterPluginBase::validate

File

src/Plugin/views/filter/PublishedOrHasRoles.php, line 96

Class

PublishedOrHasRoles
Filter by published status and by role.

Namespace

Drupal\views_published_or_roles\Plugin\views\filter

Code

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