AbstractData
Magento\Customer\Model\Metadata\Form\AbstractData
What it does
This abstract class serves as the base for handling customer and customer address attribute data in Magento 2 forms.
Developers extend this class when creating custom attribute input types or modifying how attribute data is extracted from requests, validated, and formatted for output.
It provides common functionality for request scope handling, input/output filtering, and validation rules for various attribute types like email, URL, date, and alphanumeric values.
Public Methods
- getAttribute()
- setRequestScope()
- setRequestScopeOnly()
- setExtractedData()
- getExtractedData()
- getIsAjaxRequest()
- extractValue()
- validateValue()
- compactValue()
- restoreValue()
- outputValue()