Skip to content
Snippets Groups Projects

Issue #3321316: IP2Location Geolocation API

35 files
+ 337
51
Compare changes
  • Side-by-side
  • Inline
Files
35
<?php
use Drupal\Core\Locale\CountryManager;
/**
* @file
* Provides a list of countries based on ISO standards.
*/
/**
* Get an array of all country code => country name pairs.
*
@@ -14,11 +14,11 @@
* An array of all country code => country name pairs.
*/
function country_get_predefined_list() {
$countries = \Drupal\Core\Locale\CountryManager::getStandardList();
$countries = CountryManager::getStandardList();
// Allow other modules to modify country list via
// hook_smart_ip_country_predefined_list_alter()
\Drupal::moduleHandler()->alter('smart_ip_country_predefined_list', $countries);
return $countries;
}
\ No newline at end of file
}
Loading