class TelephoneConstraint in Telephone Validation 8.2
Telephone constraint.
Plugin annotation
@Constraint(
id = "Telephone",
label = @Translation("Telephone", context = "Validation")
)
Hierarchy
- class \Drupal\telephone_validation\Plugin\Validation\Constraint\TelephoneConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of TelephoneConstraint
File
- src/
Plugin/ Validation/ Constraint/ TelephoneConstraint.php, line 15
Namespace
Drupal\telephone_validation\Plugin\Validation\ConstraintView source
class TelephoneConstraint extends Constraint {
public $message = "@number is not a valid phone number.";
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TelephoneConstraint:: |
public | property |