Log in
Interface

LinkInterface

Magento\Bundle\Api\Data\LinkInterface

What it does

This interface defines the contract for a bundle product link, which represents a single product option within a bundle product.

Developers use this to manage the relationship between a bundle product and its child products, including properties like SKU, quantity, price adjustments, position, and whether the option is selected by default.

It's essential when working with bundle product configurations through Magento's API or when creating custom bundle product functionality.

Public Methods

  • getId()
  • setId()
  • getSku()
  • setSku()
  • getOptionId()
  • setOptionId()
  • getQty()
  • setQty()
  • getPosition()
  • setPosition()
  • getIsDefault()
  • setIsDefault()
  • getPrice()
  • setPrice()
  • getPriceType()
  • setPriceType()
  • getCanChangeQuantity()
  • setCanChangeQuantity()
  • getExtensionAttributes()
  • setExtensionAttributes()