-
Notifications
You must be signed in to change notification settings - Fork 300
Closed
Description
Hello,
I use a specific form in two collections.
I don't want to have the same labels in the two.
We should be able to force the language name in the options of the collection.
Form A [
Collection A1 [
Form B
],
Collection A2[
Form B
]
]
To fix the problem :
'language_name' => $this->parent->getLanguageName(), |
- 'language_name' => $this->parent->getLanguageName(),
+ 'language_name' => $this->getOption('language_name') ?: $this->parent->getLanguageName(),
Then this code works as expected :
$this->add('A1', 'collection',
[
'type' => 'form',
'options' => [
'class' => B::class,
'language_name'=>'models.A1.B',
]
]);
Thank you for your package !
Metadata
Metadata
Assignees
Labels
No labels