Skip to content

Commit d6aa45a

Browse files
authored
Merge pull request #134 from rdeanar/faq-translation-type
Ability to translate FAQ form labels
2 parents 9cebab3 + c6cd133 commit d6aa45a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Form/Type/Translation/FrequentlyAskedQuestionTranslationType.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ final class FrequentlyAskedQuestionTranslationType extends AbstractResourceType
2525
public function buildForm(FormBuilderInterface $builder, array $options): void
2626
{
2727
$builder
28-
->add('question', TextType::class)
29-
->add('answer', TextareaType::class)
28+
->add('question', TextType::class, [
29+
'label' => 'bitbag_sylius_cms_plugin.ui.question',
30+
])
31+
->add('answer', TextareaType::class, [
32+
'label' => 'bitbag_sylius_cms_plugin.ui.answer',
33+
])
3034
;
3135
}
3236
}

0 commit comments

Comments
 (0)