Log in
Model

AbstractSwatch

Magento\Swatches\Model\Form\Element\AbstractSwatch

What it does

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 types (color, text, or image swatches) for product attributes in the admin panel.

It provides the core functionality to retrieve swatch attribute options from an EAV attribute source.