Feature: #109846 - TCA type "email" supports eval "lower"
See forge#109846
Description
TCA fields with
'type' => 'email'
now support the eval keyword
lower, which has been available for
'type' => 'input'
before:
'author_email' => [
'label' => 'Author email',
'config' => [
'type' => 'email',
'eval' => 'lower',
],
],
Copied!
The backend form lowercases the value while the record is edited, and
Data does so again when the record is saved.
Lowercasing happens before the unique and unique
evaluations, so two addresses that differ in casing
only are detected as the same value.
Impact
Email addresses can be stored in a normalized, lowercase form, which makes
them comparable - for instance when a field is additionally configured with
unique, or when the value is used to look up records.