Log in
Interface

QuoteItemsCleanerInterface

Magento\Quote\Model\Product\QuoteItemsCleanerInterface

What it does

This interface defines a contract for cleaning or removing quote items associated with a specific product.

Developers would implement this interface when they need to create services that handle the removal of quote items when a product is deleted, disabled, or otherwise needs to be removed from all active shopping carts.

This is commonly used during product maintenance operations to ensure cart integrity.

Public Methods

  • execute()