Log in
Model

Type

Magento\Bundle\Model\Source\Option\Type

What it does

This class serves as a source model for bundle product option types in Magento 2.

Developers use it to retrieve available bundle option types (like dropdown, radio buttons, checkbox, multi-select) as an array for admin forms and API responses.

It implements both the ArrayInterface for option arrays and the OptionTypeInterface for API data contracts.

Public Methods

  • toOptionArray()
  • getLabel()
  • getCode()
  • setLabel()
  • setCode()
  • getExtensionAttributes()
  • setExtensionAttributes()