public function UserInCountry::countryOptions in IP-based Determination of a Visitor's Country 8
Returns an array of country options.
Return value
array An array of 2-character country codes keyed by country name.
File
- src/
Plugin/ Condition/ UserInCountry.php, line 128
Class
- UserInCountry
- Provides a 'User is in country' condition.
Namespace
Drupal\ip2country\Plugin\ConditionCode
public function countryOptions() {
return $this->countryManager
->getList();
}