Log in
Model

Placeholder

Magento\Catalog\Model\View\Asset\Placeholder

What it does

This class manages placeholder images for product catalog items when actual product images are missing or unavailable.

Developers would use this when they need to display fallback images for products, with support for different placeholder types (thumbnail, small_image, image, swatch_image) that can be configured via system configuration or use default Magento placeholders.

Public Methods

  • getUrl()
  • getContentType()
  • getPath()
  • getRelativePath()
  • getSourceFile()
  • getSourceContentType()
  • getContent()
  • getFilePath()
  • getContext()
  • getModule()