Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page


Symfony native EmailType extended with IDNConverter (InternationalizedDomainNameConverter) feature

  • Namespace: PrestaShopBundle\Form\Admin\Type
  • Reference: EmailType

Type options

Option Type Default value Description

Code example

$builder->add('email', EmailType::class, [
    'constraints' => [
        new Email([
            'message' => $this->trans('This field is invalid', [], 'Admin.Notifications.Error'),

Preview example

EmailType rendered in form example