CopyConstructorInterface
Magento\Catalog\Model\Product\CopyConstructorInterface
What it does
This interface defines the contract for implementing product duplication logic in Magento 2.
Developers implement this interface to create custom copy constructors that handle the duplication of specific product types (simple, configurable, bundle, etc.) and their associated data.
It's used when programmatically duplicating products to ensure all relevant attributes, options, and relationships are properly copied to the new product instance.
Public Methods
- build()