Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function process(ContainerBuilder $container) |
||
25 | { |
||
26 | /* @var Definition $def */ |
||
27 | if (!$container->hasDefinition('php_translator.edit_in_place.xtrans_html_translator')) { |
||
28 | return; |
||
29 | } |
||
30 | |||
31 | // Replace the Twig Translator by a custom HTML one |
||
32 | $container->getDefinition('twig.extension.trans')->replaceArgument( |
||
33 | 0, |
||
34 | new Reference('php_translator.edit_in_place.xtrans_html_translator') |
||
35 | ); |
||
36 | } |
||
37 | } |
||
38 |