Model
Type
Magento\Catalog\Model\Product\Option\Type
What it does
This class represents a Product Custom Option Type in Magento 2's catalog system.
It serves as a data model to store and retrieve information about custom option types (like dropdown, radio button, text field) that can be added to products.
Developers use this class when working with product custom options to get or set the type's label, code, and group classification.
Public Methods
- getLabel()
- getCode()
- getGroup()
- setLabel()
- setCode()
- setGroup()
- getExtensionAttributes()
- setExtensionAttributes()