Log in
Model

CountryValidator

Magento\Inventory\Model\Source\Validator\CountryValidator

What it does

This validator ensures that a source (inventory location) has a valid country ID assigned.

Developers use this class when creating or updating inventory sources to ensure the country field is not empty, maintaining data integrity in the Multi-Source Inventory (MSI) system.

Public Methods

  • validate()