Model
GetSkusByProductIds
Magento\InventoryCatalog\Model\GetSkusByProductIds
What it does
This class retrieves product SKUs from an array of product IDs, ensuring all requested products exist.
Developers use this when they need to convert product IDs to SKUs for inventory operations, such as managing stock levels or processing orders.
It throws an exception if any product IDs are not found in the database.
Public Methods
- execute()