Model
LinkManagement
Magento\Bundle\Model\LinkManagement
What it does
This class manages the child product links for Magento 2 bundle products.
Developers use it to programmatically add, retrieve, update, or remove product selections within bundle options, such as adding a simple product to a bundle's option or removing a child product from a bundle.
Public Methods
- getChildren()
- addChildByProductSku()
- saveChild()
- addChild()
- addChildren()
- removeChild()