Composite
Magento\Catalog\Model\Product\CopyConstructor\Composite
What it does
This class orchestrates the product duplication process in Magento 2 by managing multiple copy constructors that handle different aspects of copying a product.
When a product is duplicated, this composite pattern implementation ensures all registered copy constructors are executed in sequence to properly clone product data like attributes, images, or custom options.
Developers would encounter this when customizing product duplication behavior or adding new copy constructors to handle custom product data.
Public Methods
- build()