Log in
Model

ReadHandler

Magento\Catalog\Model\Product\Gallery\ReadHandler

What it does

This class loads and attaches media gallery images to product entities when they are retrieved from the database.

Developers use this as part of Magento's extension attribute system to automatically populate product gallery data whenever a product is loaded, ensuring all product images and their metadata are available on the product object.

Public Methods

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