Log in
Model

Composite

Magento\Catalog\Model\Product\CopyConstructor\Composite

What it does

This class orchestrates the product duplication process in Magento 2 by applying multiple copy constructors in sequence.

Developers use it when duplicating products to ensure all product data (like custom options, links, or type-specific attributes) is properly copied from the original to the duplicate product through a chain of specialized copy constructors.

Public Methods

  • build()