Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
   eZ Publish 4.x / legacy

eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Skip to end of metadata
Go to start of metadata

This field type represents an email address, in the form of a string.

NameInternal nameExpected input type

Table of contents:


The EmailAddress FieldType stores an email address, which is provided as a string.

Value object


The Value class of this field type contains the following properties:

$emailstringThis property will be used for the input string provided as email address.
Value object content example


The EmailAddress\Value constructor will initialize a new Value object with the value provided. It accepts a string as input.

Constructor example

String representation

String representation of FieldType's Value object is the email address contained in it.


Hash format

Hash value for this FieldType's Value is simply the email address as a string.



This FieldType  uses the EmailAddressValidator validator as 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 FieldType does not support settings.