Renderer
Magento\Sales\Model\Order\Address\Renderer
What it does
This class is responsible for formatting order addresses in Magento 2.
Developers use it when they need to display order billing or shipping addresses in different formats (HTML, PDF, text) throughout the sales module, such as in order emails, invoices, or admin panels.
It handles store context switching and locale-specific formatting to ensure addresses are displayed correctly according to the order's store configuration.
Public Methods
- format()