Log in
Interface

ProductAttributeMediaGalleryEntryInterface

Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface

What it does

This interface defines the contract for product media gallery entries (images, videos) in Magento 2.

Developers use it when working with product media through APIs to manage image/video properties like position, label, file path, visibility, and image types (thumbnail, base image, etc.).

It's essential for programmatically adding, updating, or retrieving product media gallery items.

Public Methods

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