Log in
Interface

ProductAttributeMediaGalleryEntryInterface

Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface

What it does

This interface defines the contract for managing media gallery entries (images, videos) associated with products in Magento 2.

Developers use this when working with product images through the API to get or set properties like file path, label (alt text), position, media type, and whether the image is disabled.

It's commonly used in REST/SOAP API operations for product media management and custom integrations that need to manipulate product gallery images programmatically.

Public Methods

  • getId()
  • setId()
  • getMediaType()
  • setMediaType()
  • getLabel()
  • setLabel()
  • getPosition()
  • setPosition()
  • isDisabled()
  • setDisabled()
  • getTypes()
  • setTypes()
  • getFile()
  • setFile()
  • getContent()
  • setContent()
  • getExtensionAttributes()
  • setExtensionAttributes()