Model
ImportMediaAsset
Magento\MediaGallerySynchronization\Model\ImportMediaAsset
What it does
This class imports image files into Magento's media gallery asset database.
Developers use it when synchronizing filesystem media files with the media gallery, such as during bulk imports or when reconciling files that exist on disk but aren't yet registered in the database.
It converts file paths into asset objects and saves them to the media gallery.
Public Methods
- execute()