Model
Environment
Magento\CardinalCommerce\Model\Adminhtml\Source\Environment
What it does
This class provides a dropdown source for selecting the CardinalCommerce environment (Sandbox or Production) in the Magento admin configuration.
Developers use this class to populate system configuration dropdown fields where administrators need to choose which CardinalCommerce environment to connect to for payment processing.
Public Methods
- toOptionArray()