Attribute
Magento\Catalog\Model\ResourceModel\Eav\Attribute
What it does
This class represents a product attribute in Magento 2's catalog module, extending EAV functionality with catalog-specific features.
Developers use this model to create, manage, and configure product attributes, including their scope (global/website/store), searchability, filtering options, and visibility in various areas like product listings, grids, and advanced search.
It also handles indexing triggers for flat catalog and EAV indexes when attribute properties change.
Public Methods
- beforeSave()
- afterSave()
- isEnabledInFlat()
- beforeDelete()
- afterDeleteCommit()
- getIsGlobal()
- isScopeGlobal()
- isScopeWebsite()
- isScopeStore()
- getStoreId()
- getApplyTo()
- getSourceModel()
- isAllowedForRuleCondition()
- _getDefaultSourceModel()
- isIndexable()
- getIndexType()
- getIsWysiwygEnabled()
- getIsHtmlAllowedOnFront()
- getUsedForSortBy()
- getIsFilterable()
- getIsFilterableInSearch()
- getIsUsedInGrid()
- getIsVisibleInGrid()
- getIsFilterableInGrid()
- getPosition()
- getIsSearchable()
- getIsVisibleInAdvancedSearch()
- getIsComparable()
- getIsUsedForPromoRules()
- getIsVisibleOnFront()
- getUsedInProductListing()
- getIsVisible()
- getScope()
- setIsWysiwygEnabled()
- setIsHtmlAllowedOnFront()
- setUsedForSortBy()
- setIsFilterable()
- setIsFilterableInSearch()
- setPosition()
- setApplyTo()
- setIsSearchable()
- setIsVisibleInAdvancedSearch()
- setIsComparable()
- setIsUsedForPromoRules()
- setIsVisibleOnFront()
- setUsedInProductListing()
- setIsVisible()
- setScope()
- afterDelete()
- setIsUsedInGrid()
- setIsVisibleInGrid()
- setIsFilterableInGrid()
- deleteEntity()