public function CountryManager::getList in Ubercart 8.4
Returns a list of country code => country name pairs.
Return value
array An array of country code => country name pairs.
Overrides CountryManagerInterface::getList
File
- uc_country/
src/ CountryManager.php, line 57
Class
- CountryManager
- Provides list of countries.
Namespace
Drupal\uc_countryCode
public function getList() {
// Populate the country list if it is not already populated.
if (!isset($this->countries)) {
$this->countries = CoreCountryManager::getStandardList();
$this->moduleHandler
->alter('countries', $this->countries);
}
return $this->countries;
}