CountryWithWebsites
Magento\CustomerImportExport\Model\Import\CountryWithWebsites
What it does
This class provides a mapping of allowed countries per website for customer import operations in Magento 2.
Developers use it during customer data imports to validate and determine which countries are permitted for each website, respecting the store's configuration for allowed countries.
It's particularly useful when importing customer addresses across multi-website setups.
Public Methods
- getCountiesPerWebsite()