Log in
Model

SourceItemsValidator

Magento\Inventory\Model\SourceItem\Validator\SourceItemsValidator

What it does

This class validates multiple source items at once by iterating through an array of source items and checking each one using a SourceItemValidator.

Developers use this when bulk processing inventory source items to ensure all items meet validation requirements before saving to the database, collecting all validation errors in a single result.

Public Methods

  • validate()