Model
CopyHandler
Magento\Catalog\Model\Product\Gallery\CopyHandler
What it does
This class handles copying product gallery images and media attributes from one product to another, commonly used when duplicating products in Magento 2.
Developers would use this when they need to replicate a product's entire media gallery, including images and their associations, to a new product instance while maintaining the proper database relationships and attribute values.
Public Methods
- execute()