| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function getConfigTreeBuilder() |
||
| 25 | { |
||
| 26 | $treeBuilder = new TreeBuilder(); |
||
| 27 | $treeBuilder->root('e_xpansion_core') |
||
| 28 | ->children() |
||
| 29 | ->arrayNode('widget_positions') |
||
| 30 | ->prototype('array') // Id of the widget. |
||
| 31 | ->prototype('array') // Title |
||
| 32 | ->prototype('array') // Game mode |
||
| 33 | ->prototype('array')->children() // Script |
||
| 34 | ->floatNode('posX')->end() |
||
| 35 | ->floatNode('posY')->end() |
||
| 36 | ->variableNode('options')->end() |
||
| 37 | ->end()->end() |
||
| 38 | ->end() |
||
| 39 | ->end() |
||
| 40 | ->end() |
||
| 41 | ->end() |
||
| 42 | ->end(); |
||
| 43 | |||
| 44 | return $treeBuilder; |
||
| 45 | } |
||
| 46 | } |