You are here

TelephoneConstraint.php in Telephone Validation 8.2

File

src/Plugin/Validation/Constraint/TelephoneConstraint.php
View source
<?php

namespace Drupal\telephone_validation\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Telephone constraint.
 *
 * @Constraint(
 *   id = "Telephone",
 *   label = @Translation("Telephone", context = "Validation")
 * )
 */
class TelephoneConstraint extends Constraint {
  public $message = "@number is not a valid phone number.";

}

Classes

Namesort descending Description
TelephoneConstraint Telephone constraint.