| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function getConfigTreeBuilder() |
||
| 11 | { |
||
| 12 | $treeBuilder = new TreeBuilder(); |
||
| 13 | $rootNode = $treeBuilder->root('fenrizbes_typograph'); |
||
| 14 | |||
| 15 | $rootNode |
||
| 16 | ->children() |
||
| 17 | ->arrayNode('configs') |
||
| 18 | ->useAttributeAsKey('name') |
||
| 19 | |||
| 20 | ->prototype('array') |
||
| 21 | ->useAttributeAsKey('name') |
||
| 22 | ->prototype('variable')->end() |
||
| 23 | ->end() |
||
| 24 | |||
| 25 | ->defaultValue(array( |
||
| 26 | 'default' => array( |
||
| 27 | 'Text.paragraphs' => 'off', |
||
| 28 | 'Text.breakline' => 'off', |
||
| 29 | 'Text.auto_links' => 'off', |
||
| 30 | 'Text.email' => 'off', |
||
| 31 | 'OptAlign.oa_oquote' => 'off', |
||
| 32 | 'OptAlign.oa_obracket_coma' => 'off' |
||
| 33 | ) |
||
| 34 | )) |
||
| 35 | ->end() |
||
| 36 | ->end() |
||
| 37 | ; |
||
| 38 | |||
| 39 | return $treeBuilder; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |