Log in
Model

StatusValidator

Magento\Inventory\Model\SourceItem\Validator\StatusValidator

What it does

This validator ensures that the status field of a source item (inventory location product) is valid before saving.

It checks that the status is numeric and matches one of the allowed status values configured in the system.

Developers would use this when implementing custom inventory source item validation or when needing to understand validation rules for source item statuses.

Public Methods

  • validate()