Log in
Model

MediaGallery

Magento\CatalogGraphQl\Model\Resolver\Product\MediaGallery

What it does

This GraphQL resolver formats a product's media gallery data (images and videos) into a structure compatible with GraphQL API responses.

Developers use this class when querying product media through Magento's GraphQL API, as it transforms the product's media gallery entries into the expected schema format, including handling video content and ensuring labels are populated.

Public Methods

  • resolve()