Model
DuplicatedProductAttributesCopier
Magento\Catalog\Model\ResourceModel\DuplicatedProductAttributesCopier
What it does
This class handles copying non-global product attributes from a source product to a duplicated product during product duplication in Magento 2.
Developers use this when they need to ensure that store-specific attribute values are transferred when duplicating products, preserving localized content like descriptions, names, or custom attributes that vary by store view.
Public Methods
- copyProductAttributes()