Log in
Model

Option

Magento\Customer\Model\Data\Option

What it does

This class represents a single option for customer EAV attributes, such as dropdown or multi-select field choices.

Developers use it when working with customer attribute options to get or set the option's label (display text), value (stored data), and nested sub-options for hierarchical structures.

It's commonly used when creating or managing custom customer attributes that require predefined selection options.

Public Methods

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