add EditorJsTextareaBlockType
This commit is contained in:
parent
c7f9fc94b0
commit
05d3949236
21
src/core/Form/Site/Page/EditorJsTextareaBlockType.php
Normal file
21
src/core/Form/Site/Page/EditorJsTextareaBlockType.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Core\Form\Site\Page;
|
||||
|
||||
use App\Core\Form\Type\EditorJsTextareaType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
class EditorJsTextareaBlockType extends TextareaBlockType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder->add(
|
||||
'value',
|
||||
EditorJsTextareaType::class,
|
||||
array_merge([
|
||||
'required' => false,
|
||||
'label' => false,
|
||||
], $options['options']),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue