Link
Magento\Bundle\Model\Link
What it does
This class represents a link between a bundle product option and an individual product selection in Magento 2.
Developers use this model when working with bundle products to define which products are available as selections within bundle options, including their quantity, price, position, and whether they're default selections.
It's commonly used in bundle product management, cart operations, and when retrieving bundle product configuration data.
Public Methods
- getId()
- setId()
- getSku()
- getOptionId()
- getQty()
- getPosition()
- getIsDefault()
- getPrice()
- getPriceType()
- getCanChangeQuantity()
- setSku()
- setOptionId()
- setQty()
- setPosition()
- setIsDefault()
- setPrice()
- setPriceType()
- setCanChangeQuantity()
- getExtensionAttributes()
- setExtensionAttributes()