Model
Reasons
Magento\OrderCancellation\Model\Config\Backend\Reasons
What it does
This backend model validates and processes order cancellation reasons stored in Magento's system configuration.
It ensures that at least one cancellation reason is configured before saving, preventing administrators from accidentally removing all cancellation options.
Developers would encounter this when customizing or extending the order cancellation configuration settings.
Public Methods
- beforeSave()