Interface
CustomOptionInterface
Magento\Catalog\Api\Data\CustomOptionInterface
What it does
This interface defines the contract for custom product options that customers can select when adding items to their cart.
Developers use this when working with product customizations like text fields, dropdowns, or file uploads that allow shoppers to personalize products.
It provides methods to get and set option identifiers and their selected values.
Public Methods
- getOptionId()
- setOptionId()
- getOptionValue()
- setOptionValue()
- getExtensionAttributes()
- setExtensionAttributes()