public CountryManager::getList()
Get an array of country code => country name pairs, altered by alter hooks.
array An array of country code => country name pairs.
Overrides CountryManagerInterface::getList
\Drupal\Core\Locale\CountryManager::getStandardList()
public function getList() { // Populate the country list if it is not already populated. if (!isset($this->countries)) { $this->countries = static::getStandardList(); $this->moduleHandler->alter('countries', $this->countries); } return $this->countries; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Locale!CountryManager.php/function/CountryManager::getList/8.1.x