Added an "twig" lines mode, where the label lines are processed via a sandboxed twig.

This commit is contained in:
Jan Böhmer 2020-05-06 22:44:21 +02:00
parent c2db827c9d
commit 11225eb9cc
11 changed files with 548 additions and 7 deletions

View file

@ -105,6 +105,23 @@ class LabelOptionsType extends AbstractType
],
'required' => false,
]);
$builder->add('lines_mode', ChoiceType::class, [
'label' => 'label_options.lines_mode.label',
'choices' => [
'label_options.lines_mode.html' => 'html',
'label.options.lines_mode.twig' => 'twig',
],
'help' => 'label_options.lines_mode.help',
'help_html' => true,
'expanded' => true,
'attr' => [
'class' => 'pt-2'
],
'label_attr' => [
'class' => 'radio-custom radio-inline'
]
]);
}
public function configureOptions(OptionsResolver $resolver)