class CountryManager implements CountryManagerInterface (View source)

Provides list of countries.

Properties

protected ModuleHandlerInterface $moduleHandler

The module handler service.

protected $countries

An array of country code => country name pairs.

Methods

__construct(ModuleHandlerInterface $module_handler)

Constructor.

static array
getStandardList()

Get an array of all two-letter country code => country name pairs.

array
getList()

Get an array of country code => country name pairs, altered by alter hooks.

Details

__construct(ModuleHandlerInterface $module_handler)

Constructor.

Parameters

ModuleHandlerInterface $module_handler

The module handler.

static array getStandardList()

Get an array of all two-letter country code => country name pairs.

Return Value

array

An array of country code => country name pairs.

array getList()

Get an array of country code => country name pairs, altered by alter hooks.

Return Value

array

An array of country code => country name pairs.

See also

CountryManager::getStandardList