Nooptreq
Magento\Config\Model\Config\Source\Nooptreq
What it does
This class provides a standardized source model for configuration fields that have three states: No (disabled), Optional, or Required.
Developers use this class in their system.xml configuration files to create dropdown selects where administrators can choose whether a feature should be disabled, optional, or mandatory.
It's commonly used for form field validation settings or feature toggles that need more granularity than a simple yes/no option.
Public Methods
- toOptionArray()