Conditions | 1 |
Paths | 1 |
Total Lines | 27 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Tests | 24 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 10 | public function getConfigTreeBuilder() |
|
16 | { |
||
17 | 10 | $builder = new TreeBuilder('msalsas_gdpr_consent_banner'); |
|
18 | |||
19 | 10 | $rootNode = $builder->getRootNode(); |
|
20 | 10 | $rootNode->children() |
|
21 | 10 | ->booleanNode('has_translations') |
|
22 | 10 | ->defaultValue(true) |
|
23 | 10 | ->end() |
|
24 | 10 | ->scalarNode('css') |
|
25 | 10 | ->defaultValue('default') |
|
26 | 10 | ->end() |
|
27 | 10 | ->integerNode('fade_time') |
|
28 | 10 | ->defaultValue(1) |
|
29 | 10 | ->end() |
|
30 | 10 | ->scalarNode('text_message') |
|
31 | 10 | ->defaultValue('') |
|
32 | 10 | ->end() |
|
33 | 10 | ->scalarNode('accept_message') |
|
34 | 10 | ->defaultValue('') |
|
35 | 10 | ->end() |
|
36 | 10 | ->scalarNode('time_to_expire') |
|
37 | 10 | ->defaultValue('30 days') |
|
38 | 10 | ->end() |
|
39 | 10 | ->end(); |
|
40 | |||
41 | 10 | return $builder; |
|
42 | } |
||
44 |