Model
CustomerAddressDataFormatter
Magento\Customer\Model\Address\CustomerAddressDataFormatter
What it does
This class formats customer address data from AddressInterface objects into a standardized array structure for display or processing.
Developers use it when they need to convert address objects into a consistent format with all address fields, custom attributes, and inline formatted address strings, commonly for frontend rendering or API responses.
Public Methods
- prepareAddress()