Log in
Interface

SourceValidatorInterface

Magento\InventoryApi\Model\SourceValidatorInterface

What it does

This interface defines a contract for validating Source entities in Magento's Multi-Source Inventory (MSI) system.

Developers implement this interface to create custom validation rules for inventory sources, ensuring data integrity before sources are saved.

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

Public Methods

  • validate()