Log in
Model

ProductIdLocator

Magento\Catalog\Model\ProductIdLocator

What it does

The ProductIdLocator class is used to efficiently retrieve product IDs and types by their SKUs in Magento 2.

Developers use this service when they need to look up multiple products by SKU and get their internal IDs and product types, such as during import operations, API requests, or bulk product updates.

It implements caching and batch processing to handle large SKU lists efficiently.

Public Methods

  • retrieveProductIdsBySkus()
  • _resetState()