| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | $treeBuilder = new TreeBuilder(); |
||
| 21 | $rootNode = $treeBuilder->root('alpixel_cms'); |
||
| 22 | |||
| 23 | $rootNode |
||
| 24 | ->children() |
||
| 25 | ->arrayNode('content_types') |
||
| 26 | ->useAttributeAsKey('name') |
||
| 27 | ->prototype('variable') |
||
| 28 | ->end() |
||
| 29 | ->end() |
||
| 30 | ->scalarNode('white_label') |
||
| 31 | ->defaultValue(false) |
||
| 32 | ->cannotBeEmpty() |
||
| 33 | ->end() |
||
| 34 | ->scalarNode('exception_template') |
||
| 35 | ->defaultValue('page/errors.html.twig') |
||
| 36 | ->cannotBeEmpty() |
||
| 37 | ->end() |
||
| 38 | ->arrayNode('blocks') |
||
| 39 | ->useAttributeAsKey('name') |
||
| 40 | ->prototype('variable') |
||
| 41 | ->end(); |
||
| 42 | |||
| 43 | return $treeBuilder; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |