vendor/sylius/sylius/src/Sylius/Bundle/UserBundle/Form/Type/UserRequestPasswordResetType.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the Sylius package.
  4. *
  5. * (c) Paweł Jędrzejewski
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. namespace Sylius\Bundle\UserBundle\Form\Type;
  12. use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
  13. use Symfony\Component\Form\Extension\Core\Type\EmailType;
  14. use Symfony\Component\Form\FormBuilderInterface;
  15. final class UserRequestPasswordResetType extends AbstractResourceType
  16. {
  17. public function buildForm(FormBuilderInterface $builder, array $options): void
  18. {
  19. $builder
  20. ->add('email', EmailType::class, [
  21. 'label' => 'sylius.form.user.email',
  22. ])
  23. ;
  24. }
  25. public function getBlockPrefix(): string
  26. {
  27. return 'sylius_user_request_password_reset';
  28. }
  29. }