Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
13 | public function getConfigTreeBuilder() |
||
14 | { |
||
15 | $treeBuilder = new TreeBuilder(); |
||
16 | $rootNode = $treeBuilder->root('indigo_cookie_consent'); |
||
17 | |||
18 | $rootNode |
||
19 | ->children() |
||
20 | ->arrayNode('options') |
||
21 | ->addDefaultsIfNotSet() |
||
22 | ->info('See valid options at https://silktide.com/tools/cookie-consent/docs/installation') |
||
23 | ->children() |
||
24 | ->scalarNode('link')->end() |
||
25 | ->scalarNode('container')->end() |
||
26 | ->scalarNode('theme')->end() |
||
27 | ->scalarNode('path')->end() |
||
28 | ->scalarNode('domain')->end() |
||
29 | ->integerNode('expiryDays')->end() |
||
30 | ->scalarNode('target')->end() |
||
31 | ->end() |
||
32 | ->end() |
||
33 | ->scalarNode('script') |
||
34 | ->defaultValue('//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.10/cookieconsent.min.js') |
||
35 | ->info('Set this to false to disable script (eg. when you compiled it into yours)') |
||
36 | ->end() |
||
37 | ->end() |
||
38 | ; |
||
39 | |||
40 | return $treeBuilder; |
||
41 | } |
||
42 | } |
||
43 |