Model
Yesnocustom
Magento\Config\Model\Config\Source\Yesnocustom
What it does
This class provides a three-option dropdown source for Magento 2 system configuration fields.
It extends the standard Yes/No options by adding a third 'Specified' option, allowing administrators to select custom or conditional settings.
Developers use this class when creating admin configuration fields that need Yes, No, or a custom/specified value option.
Public Methods
- toOptionArray()