AttributeMetadataInterface
Magento\Customer\Api\Data\AttributeMetadataInterface
What it does
This interface defines the contract for working with customer attribute metadata in Magento 2.
Developers use it to retrieve and set properties of customer attributes such as frontend input type, validation rules, labels, visibility settings, and grid display options.
It's essential when building custom customer attributes, customizing forms, or programmatically accessing attribute configuration details.
Public Methods
- getFrontendInput()
- setFrontendInput()
- getInputFilter()
- setInputFilter()
- getStoreLabel()
- setStoreLabel()
- getValidationRules()
- setValidationRules()
- getMultilineCount()
- setMultilineCount()
- isVisible()
- setIsVisible()
- isRequired()
- setIsRequired()
- getDataModel()
- setDataModel()
- getOptions()
- setOptions()
- getFrontendClass()
- setFrontendClass()
- isUserDefined()
- setIsUserDefined()
- getSortOrder()
- setSortOrder()
- getFrontendLabel()
- setFrontendLabel()
- getNote()
- setNote()
- isSystem()
- setIsSystem()
- getBackendType()
- setBackendType()
- getIsUsedInGrid()
- getIsVisibleInGrid()
- getIsFilterableInGrid()
- getIsSearchableInGrid()
- setIsUsedInGrid()
- setIsVisibleInGrid()
- setIsFilterableInGrid()
- setIsSearchableInGrid()