Log in
Model

Multiselect

Magento\Customer\Model\Metadata\Form\Multiselect

What it does

This class handles multiselect form elements for customer attributes in Magento 2.

It manages extracting multiple selected values from form requests, converting them between array and comma-separated string formats for storage, and formatting the output for display.

Developers use this when working with custom customer attributes that allow multiple option selections.

Public Methods

  • extractValue()
  • compactValue()
  • outputValue()