Entry
Magento\Catalog\Model\Product\Gallery\Entry
What it does
This class represents a single media gallery entry (image or video) for a product in Magento 2.
Developers use it to manage product media attributes like file path, label (alt text), position, visibility status, and assigned image roles (thumbnail, base image, small image).
It's typically used when working with product images through the API or programmatically managing the product gallery.
Public Methods
- getId()
- getMediaType()
- getLabel()
- getPosition()
- isDisabled()
- getTypes()
- getFile()
- getContent()
- setMediaType()
- setLabel()
- setPosition()
- setDisabled()
- setTypes()
- setFile()
- setContent()
- getExtensionAttributes()
- setExtensionAttributes()