CustomerAddressDataProvider
Magento\Customer\Model\Address\CustomerAddressDataProvider
What it does
This class retrieves and formats customer address data for display or processing in Magento 2.
Developers use it when they need to get a customer's addresses with proper formatting, country filtering based on allowed countries, and optional limiting of the number of addresses returned.
It's commonly used in checkout processes, customer account pages, or anywhere customer address information needs to be displayed.
Public Methods
- getAddressDataByCustomer()