Log in
Model

Related

Magento\Catalog\Model\Product\CopyConstructor\Related

What it does

This class is responsible for copying related product links when duplicating a product in Magento 2.

When a merchant duplicates a product through the admin panel, this copy constructor ensures that all related product associations from the original product are transferred to the new duplicate product.

Developers would use this as part of the product duplication process to maintain product relationships.

Public Methods

  • build()