Model
SwatchAttributeType
Magento\Swatches\Model\SwatchAttributeType
What it does
This model provides utility methods to determine if a product attribute is a swatch type (text or visual).
Developers use this class when they need to check whether an attribute should display as color/image swatches or text swatches in product listings and configuration pages, helping to render appropriate UI elements for product variations.
Public Methods
- isTextSwatch()
- isVisualSwatch()
- isSwatchAttribute()