Conditions | 1 |
Paths | 1 |
Total Lines | 31 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function getConfigTreeBuilder() |
||
16 | { |
||
17 | $treeBuilder = new TreeBuilder(); |
||
18 | $rootNode = $treeBuilder->root('oro_crm_sales'); |
||
19 | |||
20 | // Here you should define the parameters that are allowed to |
||
21 | // configure your bundle. See the documentation linked above for |
||
22 | // more information on that topic. |
||
23 | |||
24 | $defaults = [ |
||
25 | 'in_progress' => 0, |
||
26 | 'identification_alignment' => 0.1, |
||
27 | 'needs_analysis' => 0.2, |
||
28 | 'solution_development' => 0.5, |
||
29 | 'negotiation' => 0.8, |
||
30 | 'won' => 1, |
||
31 | 'lost' => 0, |
||
32 | ]; |
||
33 | |||
34 | SettingsBuilder::append( |
||
35 | $rootNode, |
||
36 | [ |
||
37 | 'default_opportunity_probabilities' => [ |
||
38 | 'value' => $defaults, |
||
39 | 'type' => 'array', |
||
40 | ], |
||
41 | ] |
||
42 | ); |
||
43 | |||
44 | return $treeBuilder; |
||
45 | } |
||
46 | } |
||
47 |