Country.php in Address 8
Namespace
Drupal\address\Plugin\views\filterFile
src/Plugin/views/filter/Country.phpView 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;
}
}