Model
Mapper
Magento\Customer\Model\Address\Mapper
What it does
This class converts Magento Customer Address data objects (AddressInterface) into flat associative arrays.
Developers use this when they need to transform address objects into simple array format for rendering in templates, storing in session, or passing to legacy code that expects array data instead of objects.
Public Methods
- toFlatArray()