Model
UrlBuilder
Magento\Catalog\Model\Product\Image\UrlBuilder
What it does
This class generates URLs for product images based on the image file path and display area (e.g., 'product_page_image_small', 'category_page_grid').
Developers use it to programmatically build image URLs with proper dimensions and transformations without directly instantiating image helpers.
It automatically returns placeholder image URLs when no product image is available.
Public Methods
- getUrl()