Log in
Model

GetDefaultSourceItemBySku

Magento\InventoryCatalog\Model\GetDefaultSourceItemBySku

What it does

This model retrieves the default source inventory item for a product by its SKU.

Developers use this when they need to check inventory levels or source information for a product from the default warehouse/source location, returning null if no default source item exists for that SKU.

Public Methods

  • execute()