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, position, media type, and visibility settings when working with product images through the API or programmatically.
It provides getters and setters for all media gallery properties and supports extension attributes for customization.
Public Methods
- getId()
- getMediaType()
- getLabel()
- getPosition()
- isDisabled()
- getTypes()
- getFile()
- getContent()
- setMediaType()
- setLabel()
- setPosition()
- setDisabled()
- setTypes()
- setFile()
- setContent()
- getExtensionAttributes()
- setExtensionAttributes()