Log in
Model

WishlistCleaner

Magento\Wishlist\Model\WishlistCleaner

What it does

This class handles the cleanup of wishlist items when a product needs to be removed from all customer wishlists.

Developers would use this when deleting a product or when product options change significantly, ensuring that any wishlist entries containing that product are removed from the database to maintain data integrity.

Public Methods

  • execute()