Log in
Model

AttributeMetadata

Magento\Customer\Model\Data\AttributeMetadata

What it does

This class represents metadata information for customer attributes in Magento 2.

Developers use it to retrieve and set properties of customer attributes such as attribute code, frontend input type, validation rules, visibility settings, and grid display options.

It's commonly used when working with customer forms, admin grids, or when programmatically managing 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()