EmailAddress Field Type¶
The EmailAddress Field Type represents an email address, in the form of a string.
|Name||Internal name||Expected input type|
PHP API Field Type¶
Value class of this Field Type contains the following properties:
||This property will be used for the input string provided as email address.|
1 2 3 4 5 6 7 8 9
EmailAddress\Value constructor will initialize a new Value object with the value provided. It accepts a string as input.
1 2 3 4 5 6
String representation of the Field Type's Value object is the email address contained in it.
Hash value for this Field Type's Value is simply the email address as a string.
This Field Type uses the
EmailAddressValidator validator as a resource which will test the string supplied as input against a pattern, to make sure that a valid email address has been provided.
If the validations fail, a
ValidationError is thrown, specifying the error message.
This Field Type does not support settings.