You are here

Country.php in Address 8

File

src/Plugin/views/filter/Country.php
View source
<?php

namespace Drupal\address\Plugin\views\filter;


/**
 * Filter by country.
 *
 * @ingroup views_filter_handlers
 *
 * @ViewsFilter("country")
 */
class Country extends CountryAwareInOperatorBase {

  /**
   * {@inheritdoc}
   */
  public function getValueOptions() {
    if (!isset($this->valueOptions)) {
      $this->valueOptions = $this
        ->getAvailableCountries();
    }
    return $this->valueOptions;
  }

}

Classes

Namesort descending Description
Country Filter by country.