Add missing row_attr option to FormType

This commit is contained in:
Kevin Grenier 2019-09-24 17:38:26 +02:00
parent 926f286000
commit d711ea2b54
5 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,7 @@ abstract class BaseType extends AbstractType
'attr' => $options['attr'],
'block_prefixes' => $blockPrefixes,
'unique_block_prefix' => $uniqueBlockPrefix,
'row_attr' => $options['row_attr'],
'translation_domain' => $translationDomain,
'label_translation_parameters' => $labelTranslationParameters,
'attr_translation_parameters' => $attrTranslationParameters,
@ -125,6 +126,7 @@ abstract class BaseType extends AbstractType
'disabled' => false,
'label' => null,
'label_format' => null,
'row_attr' => [],
'label_translation_parameters' => [],
'attr_translation_parameters' => [],
'attr' => [],
@ -134,5 +136,6 @@ abstract class BaseType extends AbstractType
$resolver->setAllowedTypes('block_prefix', ['null', 'string']);
$resolver->setAllowedTypes('attr', 'array');
$resolver->setAllowedTypes('row_attr', 'array');
}
}

View File

@ -51,6 +51,7 @@
"post_max_size_message",
"property_path",
"required",
"row_attr",
"translation_domain",
"upload_max_size_message"
]

View File

@ -31,6 +31,7 @@ Symfony\Component\Form\Extension\Core\Type\ChoiceType (Block prefix: "choice")
post_max_size_message
property_path
required
row_attr
translation_domain
upload_max_size_message
--------------------------- -------------------- ------------------------------ -----------------------

View File

@ -31,6 +31,7 @@
"post_max_size_message",
"property_path",
"required",
"row_attr",
"translation_domain",
"trim",
"upload_max_size_message"

View File

@ -33,6 +33,7 @@ Symfony\Component\Form\Extension\Core\Type\FormType (Block prefix: "form")
post_max_size_message
property_path
required
row_attr
translation_domain
trim
upload_max_size_message