Model
SwatchAttributesProvider
Magento\Swatches\Model\SwatchAttributesProvider
What it does
This class retrieves all swatch-type attributes (visual or text swatches) configured for a Magento 2 configurable product.
Developers use this when they need to identify which product attributes should be displayed as color swatches, image swatches, or text swatches in the product display, such as for color or size selection on product pages.
Public Methods
- provide()