Model
ProductIdLocator
Magento\Catalog\Model\ProductIdLocator
What it does
This class efficiently retrieves product IDs and types by their SKUs.
Developers use it when they need to look up multiple products by SKU in bulk operations like imports, API requests, or catalog synchronization, as it caches results and processes large batches to optimize performance.
Public Methods
- retrieveProductIdsBySkus()
- _resetState()