Interface
LinkManagementInterface
Magento\ConfigurableProduct\Api\LinkManagementInterface
What it does
This interface defines methods for managing the relationship between configurable products and their child (simple) products in Magento 2.
Developers use this to programmatically retrieve all child products of a configurable product, add new child product associations, or remove existing ones using product SKUs.
Public Methods
- getChildren()
- addChild()
- removeChild()