Model
Source
Magento\Tax\Model\Rate\Source
What it does
This class provides a source model for tax rates in Magento 2, converting tax rate data into an options array format suitable for dropdown/select elements in forms and grids.
Developers use this class when they need to display tax rates as selectable options in the admin panel or frontend forms, such as when configuring product tax classes or shipping tax settings.
Public Methods
- toOptionArray()