Log in
Interface

AttributeOptionInterface

Magento\Eav\Api\Data\AttributeOptionInterface

What it does

This interface defines the structure for EAV attribute options, which are the selectable values in dropdown or multi-select attributes (like size, color, or category).

Developers use this when creating or managing attribute options programmatically, such as adding new color options to a product attribute or retrieving option labels for different store views.

Public Methods

  • getLabel()
  • setLabel()
  • getValue()
  • setValue()
  • getSortOrder()
  • setSortOrder()
  • getIsDefault()
  • setIsDefault()
  • getStoreLabels()
  • setStoreLabels()