Model
MediaGalleryProcessor
Magento\CatalogImportExport\Model\Import\Product\MediaGalleryProcessor
What it does
This class handles the processing and saving of product media gallery images during product import operations in Magento 2.
Developers use this class when importing products via CSV or other data sources that include product images, as it manages inserting image records into database tables, updating image labels and visibility, and retrieving existing images for comparison during the import process.
Public Methods
- saveMediaGallery()
- updateMediaGalleryLabels()
- updateMediaGalleryVisibility()
- getExistingImages()