Log in
Model

Country

Magento\Customer\Model\Address\Validator\Country

What it does

This validator class ensures customer addresses have valid country and region data.

Developers use it to validate that a customer address includes a required country from the allowed list, and if applicable, a valid region/state for that country.

It's automatically invoked during address save operations to prevent invalid geographic data from being stored.

Public Methods

  • validate()