Log in
Model

CancellationReasons

Magento\OrderCancellationGraphQl\Model\Resolver\CancellationReasons

What it does

This GraphQL resolver processes and returns order cancellation reasons for the storefront.

It handles both JSON-encoded strings and array formats of cancellation reasons, ensuring consistent data delivery to GraphQL queries.

Developers use this when implementing order cancellation functionality in headless or PWA storefronts that need to display available cancellation reason options to customers.

Public Methods

  • resolve()