Log in
Model

CustomerAddressDataFormatter

Magento\Customer\Model\Address\CustomerAddressDataFormatter

What it does

This class formats customer address data from an AddressInterface object into a standardized array structure.

Developers use it when they need to prepare customer address information for display, API responses, or data processing, ensuring all address fields including custom attributes and region data are properly organized and formatted.

Public Methods

  • prepareAddress()