Log in
Model

CatalogMediaConfig

Magento\Catalog\Model\Config\CatalogMediaConfig

What it does

This configuration class manages the URL format settings for catalog media images in Magento 2.

Developers use it to retrieve the configured media URL format (either 'hash' or 'image_optimization_parameters') which determines how product images are served and cached.

This is particularly useful when implementing custom image handling or when checking the store's media URL configuration.

Public Methods

  • getMediaUrlFormat()