Model
GetProductIdsBySkus
Magento\InventoryCatalog\Model\GetProductIdsBySkus
What it does
This class retrieves product IDs by their SKUs.
Developers use it when they need to convert an array of product SKUs into their corresponding database IDs, with built-in validation that throws an exception if any SKU is not found.
It's commonly used in inventory management operations where SKU-based lookups need to be converted to ID-based database operations.
Public Methods
- execute()