Model
WebsitesOptionsProvider
Magento\CatalogRule\Model\Rule\WebsitesOptionsProvider
What it does
This class provides a list of available websites as options for catalog price rules in the admin panel.
Developers use this when they need to populate dropdowns or multi-select fields that allow administrators to select which websites a catalog rule should apply to.
It implements the OptionSourceInterface to standardize how website options are retrieved and formatted.
Public Methods
- toOptionArray()