Log in
Model

ColorModesProvider

Magento\Ui\Model\ColorPicker\ColorModesProvider

What it does

This class manages and provides configuration for different color picker modes available in Magento 2's UI components.

Developers use this class when they need to retrieve all available color picker mode configurations, such as for rendering color selection interfaces in the admin panel or frontend forms.

It acts as a centralized provider that instantiates and collects configuration from all registered color mode implementations.

Public Methods

  • getModes()