Log in
Model

DefaultSourceDisableValidator

Magento\InventoryCatalog\Model\Source\Validator\DefaultSourceDisableValidator

What it does

This validator ensures that the default inventory source in Magento's Multi-Source Inventory (MSI) system cannot be disabled.

Developers would encounter this when implementing source management features or customizing inventory source validation rules, as it enforces a critical business rule that at least one source (the default) must remain active.

Public Methods

  • validate()