Model
City
Magento\Customer\Model\Validator\City
What it does
This validator ensures that customer city names contain only valid characters (letters, diacritics, apostrophes, hyphens, and spaces) with a maximum length of 100 characters.
Developers use this class to validate city input during customer registration, profile updates, or address management to prevent invalid or malicious data from being stored in the system.
Public Methods
- isValid()