|
@@ -67,7 +67,7 @@ class TranslatableChoiceType extends ChoiceType
|
|
/**
|
|
/**
|
|
* {@inheritDoc}
|
|
* {@inheritDoc}
|
|
*/
|
|
*/
|
|
- public function buildForm(FormBuilderInterface $builder, array $options)
|
|
|
|
|
|
+ public function buildForm(FormBuilder $builder, array $options)
|
|
{
|
|
{
|
|
// translate options before building form
|
|
// translate options before building form
|
|
foreach ($options['choices'] as $name => $value) {
|
|
foreach ($options['choices'] as $name => $value) {
|
|
@@ -82,6 +82,14 @@ class TranslatableChoiceType extends ChoiceType
|
|
parent::buildForm($builder, $options);
|
|
parent::buildForm($builder, $options);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * {@inheritDoc}
|
|
|
|
+ */
|
|
|
|
+ public function getParent()
|
|
|
|
+ {
|
|
|
|
+ return 'choice';
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* {@inheritDoc}
|
|
* {@inheritDoc}
|
|
*/
|
|
*/
|