Dynamic/Types/EmailType.php
public function build(FormBuilderInterface $builder, FormField $field, $locale, $options)
    {
        $options['constraints'][] = new EmailConstraint();
        $type = TypeEmailType::class;
        $builder->add($field->getKey(), $type, $options);
    }
public function build(FormBuilderInterface $builder, FormField $field, $locale, $options)
    {
        $options['constraints'][] = new EmailConstraint();
        $type = TypeEmailType::class;
        $builder->add($field->getKey(), $type, $options);
    }
{@inheritdoc}