| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function getConfigTreeBuilder() |
||
| 22 | { |
||
| 23 | $treeBuilder = new TreeBuilder('zikula_settings'); |
||
| 24 | |||
| 25 | $treeBuilder->getRootNode() |
||
| 26 | ->addDefaultsIfNotSet() |
||
|
|
|||
| 27 | ->children() |
||
| 28 | ->scalarNode('locale')->defaultValue('en')->end() |
||
| 29 | ->arrayNode('locales') |
||
| 30 | ->defaultValue(['en']) |
||
| 31 | ->scalarPrototype()->end() |
||
| 32 | ->end() |
||
| 33 | ->end() |
||
| 34 | ; |
||
| 35 | |||
| 36 | return $treeBuilder; |
||
| 37 | } |
||
| 39 |