Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function getConfigTreeBuilder(): TreeBuilder |
||
13 | { |
||
14 | $treeBuilder = new TreeBuilder('projet_normandie_article'); |
||
15 | $rootNode = $treeBuilder->getRootNode(); |
||
16 | |||
17 | $rootNode |
||
18 | ->children() |
||
19 | ->scalarNode('default_locale') |
||
20 | ->defaultValue('en') |
||
21 | ->info('Default locale for fallback translations') |
||
22 | ->end() |
||
23 | ->arrayNode('supported_locales') |
||
|
|||
24 | ->defaultValue(['en', 'fr']) |
||
25 | ->prototype('scalar')->end() |
||
26 | ->info('List of supported locales for translations') |
||
27 | ->end() |
||
28 | ->end(); |
||
29 | |||
30 | return $treeBuilder; |
||
31 | } |
||
33 |