Log in
Interface

OptionTypeInterface

Magento\Bundle\Api\Data\OptionTypeInterface

What it does

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

It provides methods to get and set the label (display name) and code (internal identifier) for bundle option types like radio buttons, dropdowns, checkboxes, or multiple select.

Developers use this when working with bundle product configurations or creating custom bundle option type implementations.

Public Methods

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