Swatches Module
AttributesList
This class retrieves and formats product attribute information for configurable products, specifically focusing on swatch attributes. Developers use i...
ConvertSwatchAttributeFrontendInput
This class converts frontend input type identifiers for swatch attributes into their internal representation. Developers use this when processing attr...
Data
This helper class provides utility methods for working with product swatches in Magento 2. Developers use it to retrieve swatch attributes from config...
Form\Element\AbstractSwatch
This is an abstract base class for swatch form elements in Magento 2's admin interface. Developers extend this class when creating custom swatch input...
Form\Element\SwatchText
This class represents a text-based swatch form element in Magento's product attribute configuration. Developers would use this when creating or managi...
Form\Element\SwatchVisual
This class represents a form element for visual swatches (color or image-based product options) in the Magento admin interface. Developers use this wh...
Media
This helper class manages swatch attribute images in Magento 2, handling operations like moving images from temporary to permanent storage, generating...
Model\ResourceModel\Swatch\Collection
This collection class retrieves and manages swatch attribute data from the database. Developers use it to load swatch records with filtering capabilit...
ResourceModel\Swatch
This resource model manages database operations for product swatch options in Magento 2. Developers use this class to save default swatch values for a...
Swatch
This model represents a swatch option in Magento 2's product attribute system. Developers use this class when working with color, texture, or visual p...
SwatchAttributeCodes
This class retrieves and caches a mapping of attribute IDs to attribute codes for all EAV attributes that have swatch options configured. Developers w...
SwatchAttributeType
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...
SwatchAttributesProvider
This class retrieves all swatch-type attributes (visual or text swatches) configured for a Magento 2 configurable product. Developers use this when th...