Warning: You are browsing the documentation for PrestaShop 8, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page
Symfony native EmailType extended with IDNConverter (InternationalizedDomainNameConverter) feature
Option | Type | Default value | Description |
---|
$builder->add('email', EmailType::class, [
'constraints' => [
$this->getNotBlankConstraint(),
$this->getLengthConstraint(EmployeeEmail::MAX_LENGTH),
new Email([
'message' => $this->trans('This field is invalid', [], 'Admin.Notifications.Error'),
]),
],
])