Model
AllowedCountries
Magento\Directory\Model\AllowedCountries
What it does
This class retrieves the list of allowed countries based on Magento's configuration settings for different scopes (website, store, or store group).
Developers use this class when they need to determine which countries are permitted for operations like checkout, shipping, or payment methods, respecting the store's configured country restrictions.
Public Methods
- getAllowedCountries()
- makeCountriesUnique()
- getCountriesFromConfig()