EavAttributeInterface
Magento\Catalog\Api\Data\EavAttributeInterface
What it does
This interface defines the contract for catalog product attributes in Magento 2, extending the base EAV attribute interface with catalog-specific properties.
Developers use this when working with product attributes to control behavior like visibility in layered navigation, search functionality, product listing appearance, grid filtering, and frontend display options.
It's essential for customizing how product attributes behave across the catalog, search, and admin areas.
Public Methods
- getIsWysiwygEnabled()
- setIsWysiwygEnabled()
- getIsHtmlAllowedOnFront()
- setIsHtmlAllowedOnFront()
- getUsedForSortBy()
- setUsedForSortBy()
- getIsFilterable()
- setIsFilterable()
- getIsFilterableInSearch()
- getIsUsedInGrid()
- getIsVisibleInGrid()
- getIsFilterableInGrid()
- setIsUsedInGrid()
- setIsVisibleInGrid()
- setIsFilterableInGrid()
- setIsFilterableInSearch()
- getPosition()
- setPosition()
- getApplyTo()
- setApplyTo()
- getIsSearchable()
- setIsSearchable()
- getIsVisibleInAdvancedSearch()
- setIsVisibleInAdvancedSearch()
- getIsComparable()
- setIsComparable()
- getIsUsedForPromoRules()
- setIsUsedForPromoRules()
- getIsVisibleOnFront()
- setIsVisibleOnFront()
- getUsedInProductListing()
- setUsedInProductListing()
- getIsVisible()
- setIsVisible()
- getScope()
- setScope()
- getExtensionAttributes()