public static function CountryController::countryOptionsCallback in Ubercart 8.4
Returns a list of all installed/available countries.
Return value
array Associative array keyed by the country's ISO 3166-1 alpha_2 country code and containing the translated ISO 3166-1 country name.
File
- uc_country/
src/ Controller/ CountryController.php, line 54
Class
- CountryController
- Utility functions to enable and disable country configuration entities.
Namespace
Drupal\uc_country\ControllerCode
public static function countryOptionsCallback() {
return \Drupal::service('country_manager')
->getEnabledList();
}