src/Form/Type/SiteCommentOrderType.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Form\Type;
  3. use Sylius\Bundle\ChannelBundle\Form\Type\ChannelChoiceType;
  4. use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
  5. use Symfony\Component\Form\Extension\Core\Type\TextareaType;
  6. use Symfony\Component\Form\Extension\Core\Type\CollectionType;
  7. use Sylius\Bundle\ResourceBundle\Form\Type\ResourceTranslationsType;
  8. use Symfony\Component\Form\FormBuilderInterface;
  9. final class SiteCommentOrderType extends AbstractResourceType
  10. {
  11.     /**
  12.      * {@inheritdoc}
  13.      */
  14.     public function buildForm(FormBuilderInterface $builder, array $options)
  15.     {
  16.         $builder
  17.             ->add('comment'TextareaType::class, [
  18.                 'label' => 'Votre message',
  19.                 'required' => true
  20.             ])
  21.            
  22.         ;
  23.     }
  24.     
  25.     /**
  26.      * {@inheritdoc}
  27.      */
  28.     public function getBlockPrefix()
  29.     {
  30.         return 'app_site_comment_order';
  31.     }
  32. }