Log in
Interface

SourceItemValidatorInterface

Magento\InventoryApi\Model\SourceItemValidatorInterface

What it does

This interface defines a contract for validating source item data in Magento's Multi-Source Inventory system.

Developers implement this interface to create custom validators that check if source item properties (like SKU, quantity, source code) meet business rules before saving.

It serves as an extension point allowing third-party modules to add their own validation logic for inventory sources.

Public Methods

  • validate()