Link Search Menu Expand Document

Constructor: help.country

Back to constructors index

Name, ISO code, localized name and phone codes/patterns of a specific country

Attributes:

NameTypeRequiredDescription
hiddenBoolOptionalWhether this country should not be shown in the list
iso2stringYesISO code of country
default_namestringYesName of the country in the country’s language
namestringOptionalName of the country in the user’s language, if different from the original name
country_codesArray of help.CountryCodeYesPhone codes/patterns

Type: help.Country

Example:

$help_country = ['_' => 'help.country', 'hidden' => Bool, 'iso2' => 'string', 'default_name' => 'string', 'name' => 'string', 'country_codes' => [help.CountryCode, help.CountryCode]];