Log in
Model

Select

Magento\Customer\Model\Metadata\Form\Select

What it does

This class handles form data processing for select/dropdown customer attributes in Magento 2.

Developers use it when working with customer attributes that have predefined options (like dropdown fields), as it extracts, validates, and formats select field values from forms and converts them between stored values and display labels.

Public Methods

  • extractValue()
  • validateValue()
  • compactValue()
  • restoreValue()
  • outputValue()