Log in
Model

FormattedPriceInfoBuilder

Magento\Catalog\Model\ProductRender\FormattedPriceInfoBuilder

What it does

This builder class converts numeric price values from a PriceInfoInterface object into formatted HTML price strings using the store's currency format.

Developers use this when rendering product prices in the storefront to ensure all price values are properly formatted according to the store's locale and currency settings, making them display-ready for customers.

Public Methods

  • build()