Log in
Interface

OptionInterface

Magento\Customer\Api\Data\OptionInterface

What it does

This interface defines the structure for customer attribute options, such as dropdown or multi-select values.

It supports hierarchical options through nested option arrays, making it useful for creating custom customer attributes with complex option structures.

Developers use this when working with customer attribute metadata, particularly for configuring custom select-type attributes.

Public Methods

  • getLabel()
  • setLabel()
  • getValue()
  • setValue()
  • getOptions()
  • setOptions()