add option in CollectionBlockType to define the collection type
This commit is contained in:
parent
f17dc928db
commit
942ffbe143
|
@ -16,7 +16,7 @@ class CollectionBlockType extends AbstractType
|
||||||
{
|
{
|
||||||
$builder->add(
|
$builder->add(
|
||||||
'value',
|
'value',
|
||||||
CollectionType::class,
|
$options['collection_type'],
|
||||||
array_merge([
|
array_merge([
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'label' => false,
|
'label' => false,
|
||||||
|
@ -40,6 +40,7 @@ class CollectionBlockType extends AbstractType
|
||||||
{
|
{
|
||||||
$resolver->setDefaults([
|
$resolver->setDefaults([
|
||||||
'data_class' => Block::class,
|
'data_class' => Block::class,
|
||||||
|
'collection_type' => CollectionType::class,
|
||||||
'collection_name' => '',
|
'collection_name' => '',
|
||||||
'label_add' => 'Add',
|
'label_add' => 'Add',
|
||||||
'label_delete' => 'Delete',
|
'label_delete' => 'Delete',
|
||||||
|
|
Loading…
Reference in a new issue