Log in
Model

Text

Magento\Customer\Model\Metadata\Form\Text

What it does

This class handles validation, extraction, and formatting of text-based customer attribute form fields in Magento 2.

Developers use it when working with customer forms to validate text input, enforce length restrictions, and process text values from requests.

It's automatically utilized by Magento's form metadata system when rendering and processing customer attribute fields of text type.

Public Methods

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