| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | $treeBuilder = new TreeBuilder(); |
||
| 21 | $rootNode = $treeBuilder->root('cms'); |
||
| 22 | |||
| 23 | $rootNode |
||
| 24 | ->children() |
||
| 25 | ->arrayNode('content_types') |
||
| 26 | ->useAttributeAsKey('name') |
||
| 27 | ->prototype('variable') |
||
| 28 | ->end() |
||
| 29 | ->end(); |
||
| 30 | |||
| 31 | $rootNode |
||
| 32 | ->children() |
||
| 33 | ->arrayNode('blocks') |
||
| 34 | ->useAttributeAsKey('name') |
||
| 35 | ->prototype('variable') |
||
| 36 | ->end() |
||
| 37 | ->end(); |
||
| 38 | |||
| 39 | return $treeBuilder; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |