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

  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.     public function buildView(FormView $viewFormInterface $form, array $options)
  17.     {
  18.         $view->vars['pattern'] = null;
  19.         unset($view->vars['attr']['pattern']);
  20.     }
  21.     public function getParent(): ?string
  22.     {
  23.         return TextType::class;
  24.     }
  25.     public function getBlockPrefix(): string
  26.     {
  27.         return 'textarea';
  28.     }
  29. }