Log in
Interface

BuyRequestDataProviderInterface

Magento\Quote\Model\Cart\BuyRequest\BuyRequestDataProviderInterface

What it does

This interface defines a contract for classes that transform cart item data into buy request parameters required by Magento's product add-to-cart functionality.

Developers implement this interface when creating custom product types or extending cart functionality to ensure proper data formatting for different product configurations (simple, configurable, bundle, etc.).

Each product type can have its own implementation to handle specific attributes like size, color, or custom options.

Public Methods

  • execute()