Log in
Interface

PrecursorInterface

Magento\QuoteGraphQl\Model\CartItem\PrecursorInterface

What it does

This interface defines a contract for preprocessing cart item data before GraphQL cart operations are executed.

Developers implement this interface to validate, transform, or enrich cart item data received through GraphQL requests, and collect any errors that occur during preprocessing.

It extends ItemDataProcessorInterface to integrate with Magento's cart item data processing pipeline.

Public Methods

  • process()
  • getErrors()