deblan.io-murph/core/Form/Site/Page/TextareaBlockType.php
Simon Vieille 40ed84dea3 init murph
Signed-off-by: Simon Vieille <simon@deblan.fr>
2021-03-24 19:10:26 +01:00

22 lines
515 B
PHP

<?php
namespace App\Core\Form\Site\Page;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
class TextareaBlockType extends TextBlockType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add(
'value',
TextareaType::class,
array_merge([
'required' => false,
'label' => false,
], $options['options']),
);
}
}