Log in
Model

Option

Magento\Customer\Model\Data\Option

What it does

This class represents a single option for customer EAV attributes (like dropdown or multiselect custom attributes).

Developers use it to define selectable options with labels and values for customer attributes, and it supports nested options for hierarchical selections.

It's typically used when creating or modifying customer attribute configurations programmatically.

Public Methods

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