Log in
Model

ProductOutputProcessor

Magento\Catalog\Model\Product\Webapi\ProductOutputProcessor

What it does

This class processes product data returned by Magento 2 Web API endpoints by removing empty attributes that weren't included in the original request.

Developers use this to ensure API responses only contain attributes that were explicitly set or requested, preventing null or empty arrays for tier_prices and product_links from appearing in the output when they weren't part of the input.

Public Methods

  • execute()