Log in
Model

Config

Magento\OrderCancellation\Model\Config\Config

What it does

This config model manages order cancellation settings for Magento 2 stores.

Developers use it to check if order cancellation is enabled for a specific store and to retrieve the list of available cancellation reasons configured in the admin panel.

It's typically used in order management workflows where customers or admins need to cancel orders.

Public Methods

  • isOrderCancellationEnabledForStore()
  • getCancellationReasons()