Log in
Model

CountryInformation

Magento\Directory\Model\Data\CountryInformation

What it does

This data model class represents comprehensive country information in Magento 2, storing details like country ID, two-letter and three-letter abbreviations (e.g., US, USA), localized and English full names, and available regions/states.

Developers use this class when working with the Directory module's API to retrieve or set country data for address forms, shipping configurations, or localization features.

Public Methods

  • getId()
  • setId()
  • getTwoLetterAbbreviation()
  • setTwoLetterAbbreviation()
  • getThreeLetterAbbreviation()
  • setThreeLetterAbbreviation()
  • getFullNameLocale()
  • setFullNameLocale()
  • getFullNameEnglish()
  • setFullNameEnglish()
  • getAvailableRegions()
  • setAvailableRegions()
  • getExtensionAttributes()
  • setExtensionAttributes()