Model
PhoneValidator
Magento\InventoryInStorePickup\Model\Source\Validator\PhoneValidator
What it does
This validator ensures that a phone number is provided for inventory sources that are configured as pickup locations.
It's used during source save operations to prevent pickup locations from being created or updated without a required phone number, which is essential for customer communication about in-store pickups.
Public Methods
- validate()