CustomerAddressDataProvider
Magento\Customer\Model\Address\CustomerAddressDataProvider
What it does
This class retrieves and formats address data for a given customer, with optional filtering based on allowed countries and address limits.
Developers use it when they need to get a customer's addresses in a standardized format, particularly in checkout flows or customer account pages where address selection is required.
It caches the addresses to avoid repeated processing and respects global scope settings to filter addresses by allowed countries.
Public Methods
- getAddressDataByCustomer()