Log in
Model

ProductDataProvider

Magento\CatalogUrlRewriteGraphQl\Model\DataProvider\UrlRewrite\ProductDataProvider

What it does

This class provides product data for GraphQL URL rewrite queries in Magento 2.

It retrieves product information by ID for a specific store, validates that the product is enabled, and returns the product data array along with the product model.

Developers use this when resolving GraphQL queries that need product details based on URL rewrites.

Public Methods

  • getData()