Processor
Magento\Catalog\Model\Product\Gallery\Processor
What it does
This class manages product image gallery operations in Magento 2's catalog system.
Developers use it to programmatically add, update, remove, and validate product images, handle image file operations like moving/copying, and manage media attributes (thumbnail, base image, small image).
It serves as the main processor for all product gallery-related operations, handling both the database records and physical file management.
Public Methods
- getAttribute()
- validate()
- addImage()
- updateImage()
- removeImage()
- getImage()
- clearMediaAttribute()
- setMediaAttribute()
- getMediaAttributeCodes()
- duplicateImageFromTmp()
- getAffectedFields()
- isScalar()