Model
CopyHandler
Magento\Catalog\Model\Product\Gallery\CopyHandler
What it does
This class handles copying media gallery images and data from one product to another during product duplication operations.
Developers use this when programmatically duplicating products or creating product variants that need to inherit the original product's images, ensuring all gallery entries and media attribute values are properly replicated with new IDs.
Public Methods
- execute()