src/Bidcoz/Bundle/FrontendBundle/Form/Type/ContactUsType.php line 13

Open in your IDE?
  1. <?php
  2. namespace Bidcoz\Bundle\FrontendBundle\Form\Type;
  3. use RS\DiExtraBundle\Annotation as DI;
  4. use Symfony\Component\Form\AbstractType;
  5. use Symfony\Component\Form\Extension\Core\Type\TextareaType;
  6. use Symfony\Component\Form\FormBuilderInterface;
  7. /**
  8.  * @DI\FormType
  9.  */
  10. class ContactUsType extends AbstractType
  11. {
  12.     public function buildForm(FormBuilderInterface $builder, array $options)
  13.     {
  14.         $builder
  15.             ->add('message'TextareaType::class, [
  16.                 'label'    => 'Your Message',
  17.                 'required' => false,
  18.                 'attr'     => [
  19.                     'class' => 'no-wysiwyg',
  20.                 ],
  21.             ])
  22.         ;
  23.     }
  24.     public function getBlockPrefix()
  25.     {
  26.         return 'contact_us';
  27.     }
  28. }