vendor/symfony/form/Extension/Core/Type/TextareaType.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Form\Extension\Core\Type;
  11. use Symfony\Component\Form\AbstractType;
  12. use Symfony\Component\Form\FormInterface;
  13. use Symfony\Component\Form\FormView;
  14. class TextareaType extends AbstractType
  15. {
  16.     /**
  17.      * {@inheritdoc}
  18.      */
  19.     public function buildView(FormView $viewFormInterface $form, array $options)
  20.     {
  21.         $view->vars['pattern'] = null;
  22.         unset($view->vars['attr']['pattern']);
  23.     }
  24.     /**
  25.      * {@inheritdoc}
  26.      */
  27.     public function getParent()
  28.     {
  29.         return TextType::class;
  30.     }
  31.     /**
  32.      * {@inheritdoc}
  33.      */
  34.     public function getBlockPrefix()
  35.     {
  36.         return 'textarea';
  37.     }
  38. }