Model
Attribute
Magento\Eav\Model\Attribute
What it does
This class manages EAV (Entity-Attribute-Value) attributes in Magento 2, providing functionality to handle attribute properties like validation rules, scope values, and website associations.
Developers use this class when working with custom attributes for entities like customers or products, especially when needing to access attribute metadata, validation rules, or determine which forms use specific attributes.
Public Methods
- setWebsite()
- getWebsite()
- afterSave()
- getUsedInForms()
- getValidateRules()
- setData()
- setValidateRules()
- getIsRequired()
- getIsVisible()
- getDefaultValue()
- getMultilineCount()
- afterDelete()