Model
AttributeMetadata
Magento\Customer\Model\Data\AttributeMetadata
What it does
This class is a data model that represents metadata for customer attributes in Magento 2.
Developers use it to retrieve and set properties of customer attributes like attribute code, input type, validation rules, visibility settings, and grid display options.
It's commonly used when working with the Customer API to programmatically manage or display customer attribute configurations.
Public Methods
- getAttributeCode()
- getFrontendInput()
- getInputFilter()
- getStoreLabel()
- getValidationRules()
- getMultilineCount()
- isVisible()
- isRequired()
- getDataModel()
- getOptions()
- getFrontendClass()
- isUserDefined()
- getSortOrder()
- getFrontendLabel()
- getNote()
- isSystem()
- getBackendType()
- setAttributeCode()
- setFrontendInput()
- setInputFilter()
- setStoreLabel()
- setValidationRules()
- setMultilineCount()
- setIsVisible()
- setIsRequired()
- setDataModel()
- setOptions()
- setFrontendClass()
- setIsUserDefined()
- setSortOrder()
- setFrontendLabel()
- setNote()
- setIsSystem()
- setBackendType()
- getIsUsedInGrid()
- getIsVisibleInGrid()
- getIsFilterableInGrid()
- getIsSearchableInGrid()
- setIsUsedInGrid()
- setIsVisibleInGrid()
- setIsFilterableInGrid()
- setIsSearchableInGrid()
- getDefaultValue()
- setDefaultValue()