Log in
Model

Config

Magento\Customer\Model\Address\Config

What it does

This class manages customer address formatting configurations in Magento 2.

Developers use it to retrieve different address format templates (like oneline, text, html, pdf) that define how customer addresses are displayed throughout the store.

It handles store-specific address templates and provides default formats with appropriate renderers for displaying addresses in various contexts.

Public Methods

  • setStore()
  • getStore()
  • getFormats()
  • getFormatByCode()