Log in
Interface

OptionInterface

Magento\Bundle\Api\Data\OptionInterface

What it does

This interface defines the contract for bundle product options in Magento 2.

Developers use it to programmatically create, read, update, or delete bundle options, including their titles, types (dropdown, radio, checkbox, etc.), positions, and associated product links.

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

Public Methods

  • getOptionId()
  • setOptionId()
  • getTitle()
  • setTitle()
  • getRequired()
  • setRequired()
  • getType()
  • setType()
  • getPosition()
  • setPosition()
  • getSku()
  • setSku()
  • getProductLinks()
  • setProductLinks()
  • getExtensionAttributes()
  • setExtensionAttributes()