Model
LinkManagement
Magento\ConfigurableProduct\Model\LinkManagement
What it does
This class manages the relationship between configurable products and their child (simple) products in Magento 2.
Developers use it to retrieve child products, add new variants to a configurable product, remove existing variants, and access media gallery entries for each child product through the API or service layer.
Public Methods
- getChildren()
- getMediaEntries()
- addChild()
- removeChild()