Model
OptionProvider
Magento\UrlRewrite\Model\OptionProvider
What it does
This class provides redirect type options for URL rewrites in Magento 2.
Developers use it to populate dropdown menus in admin forms where users need to select between no redirect, temporary (302), or permanent (301) redirect types.
It implements OptionSourceInterface to standardize how redirect options are presented throughout the system.
Public Methods
- toOptionArray()
- getOptions()