Log in
Interface

ProductIdLocatorInterface

Magento\Catalog\Model\ProductIdLocatorInterface

What it does

This interface defines a contract for retrieving product IDs by their SKUs in Magento 2.

Developers use this when they need to efficiently look up multiple product IDs and their types (simple, configurable, etc.) at once by providing an array of SKUs.

It's particularly useful in import/export operations, API integrations, or any bulk product data processing where you need to map SKUs to internal product IDs.

Public Methods

  • retrieveProductIdsBySkus()