Log in
Interface

ProductOptionInterface

Magento\Catalog\Api\Data\ProductOptionInterface

What it does

This interface defines the contract for product options in Magento 2, which represent additional choices or configurations that can be associated with products in orders and quotes.

Developers use this interface when working with product customizations, custom options, or configurable product selections that need to be stored with order items.

It extends ExtensibleDataInterface to support custom extension attributes for third-party module integration.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()