Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
payment_section_structure_variations.php
Go to the documentation of this file.
1 <?php
7 return [
8  [
9  'empty structure',
10  []
11  ],
12  [
13  'structure with special groups at the begin of the list',
14  [
15  'account' => [
16  'id' => 'account',
17  ],
18  'recommended_solutions' => [
19  'id' => 'recommended_solutions',
20  ],
21  'other_paypal_payment_solutions' => [
22  'id' => 'other_paypal_payment_solutions',
23  ],
24  'other_payment_methods' => [
25  'id' => 'other_payment_methods',
26  ],
27  'some_payment_method' => [
28  'id' => 'some_payment_method',
29  ],
30  ]
31  ],
32  [
33  'structure with special groups at the end of the list',
34  [
35  'some_payment_method' => [
36  'id' => 'some_payment_method',
37  ],
38  'account' => [
39  'id' => 'account',
40  ],
41  'recommended_solutions' => [
42  'id' => 'recommended_solutions',
43  ],
44  'other_paypal_payment_solutions' => [
45  'id' => 'other_paypal_payment_solutions',
46  ],
47  'other_payment_methods' => [
48  'id' => 'other_payment_methods',
49  ],
50  ]
51  ],
52  [
53  'structure with special groups in the middle of the list',
54  [
55  'some_payment_methodq' => [
56  'id' => 'some_payment_methodq',
57  ],
58  'account' => [
59  'id' => 'account',
60  ],
61  'recommended_solutions' => [
62  'id' => 'recommended_solutions',
63  ],
64  'other_paypal_payment_solutions' => [
65  'id' => 'other_paypal_payment_solutions',
66  ],
67  'other_payment_methods' => [
68  'id' => 'other_payment_methods',
69  ],
70  'some_payment_method2' => [
71  'id' => 'some_payment_method2',
72  ],
73  ]
74  ],
75  [
76  'structure with all assigned groups',
77  [
78  'some_payment_method1' => [
79  'id' => 'some_payment_method1',
80  'displayIn' => 'other_paypal_payment_solutions',
81  ],
82  'some_payment_method2' => [
83  'id' => 'some_payment_method2',
84  'displayIn' => 'recommended_solutions',
85  ],
86  ]
87  ],
88  [
89  'structure with not assigned groups',
90  [
91  'some_payment_method1' => [
92  'id' => 'some_payment_method1',
93  'displayIn' => 'other_paypal_payment_solutions',
94  ],
95  'some_payment_method2' => [
96  'id' => 'some_payment_method2',
97  ],
98  ]
99  ],
100  [
101  'special groups has predefined children',
102  [
103  'recommended_solutions' => [
104  'id' => 'recommended_solutions',
105  'children' => [
106  'some_payment_method1' => [
107  'id' => 'some_payment_method1',
108  ],
109  ]
110  ],
111  'some_payment_method2' => [
112  'id' => 'some_payment_method2',
113  'displayIn' => 'recommended_solutions',
114  ],
115  ]
116  ],
117  [
118  'structure with displayIn that do not reference to special groups',
119  [
120  'some_payment_method1' => [
121  'id' => 'some_payment_method1',
122  ],
123  'some_payment_method2' => [
124  'id' => 'some_payment_method2',
125  'displayIn' => 'some_payment_method1',
126  ],
127  ]
128  ],
129 ];