Email

New in version 12.0

The TCA type email has been introduced. It replaces the eval=email option of TCA type input.

The TCA type email should be used to input values representing email addresses.

Migration

The migration from eval='email' to type=email is done like following:

 // Before

 'email_field' => [
     'label' => 'Email',
     'config' => [
         'type' => 'input',
         'eval' => 'trim,email',
         'max' => 255,
     ]
 ]

// After

 'email_field' => [
     'label' => 'Email',
     'config' => [
         'type' => 'email',
     ]
 ]
Copied!

An automatic TCA migration is performed on the fly, migrating all occurrences to the new TCA type and triggering a PHP E_USER_DEPRECATED error where code adoption has to take place.