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.     /**
  18.      * {@inheritdoc}
  19.      */
  20.     public function buildForm(FormBuilderInterface $builder, array $options): void
  21.     {
  22.         $builder
  23.             ->add('email'EmailType::class, [
  24.                 'label' => 'sylius.form.user.email',
  25.             ])
  26.         ;
  27.     }
  28.     /**
  29.      * {@inheritdoc}
  30.      */
  31.     public function getBlockPrefix(): string
  32.     {
  33.         return 'sylius_user_request_password_reset';
  34.     }
  35. }