SourceValidator
Magento\InventoryImportExport\Model\Import\Validator\SourceValidator
What it does
This validator ensures that source codes referenced during inventory import operations actually exist in the system.
Developers use this class as part of Magento 2's MSI (Multi-Source Inventory) import validation chain to prevent importing inventory data for non-existent warehouse/source locations.
It checks each row of import data to verify the source code is valid before processing.
Public Methods
- validate()