Log in
Model

ReadHandler

Magento\Catalog\Model\Product\Gallery\ReadHandler

What it does

This class loads and attaches media gallery images to product entities during read operations.

Developers use this when retrieving products to ensure all associated gallery images are properly loaded and available on the product object.

It's automatically invoked by Magento's entity manager when products are loaded from the database.

Public Methods

  • execute()
  • addMediaDataToProduct()
  • getAttribute()