Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
converted_config.php
Go to the documentation of this file.
1 <?php
7 return [
8  'config' => [
9  'noNamespaceSchemaLocation' => 'urn:magento:module:Magento_Config:etc/system_file.xsd',
10  'system' => [
11  'tabs' => [
12  'tab_1' => [
13  'id' => 'tab_1',
14  'label' => 'Tab 1 New',
15  '_elementType' => 'tab',
16  ],
17  ],
18  'sections' => [
19  'section_1' => [
20  'id' => 'section_1',
21  'type' => 'text',
22  'label' => 'Section 1 New',
23  'tab' => 'tab_1',
24  'children' => [
25  'group_1' => [
26  'id' => 'group_1',
27  'type' => 'text',
28  'label' => 'Group 1 New',
29  'children' => [
30  'field_2' => [
31  'id' => 'field_2',
32  'config_path' => 'section/group/field2',
33  'translate' => 'label',
34  'showInWebsite' => '1',
35  'type' => 'text',
36  'label' => 'Field 2',
37  'backend_model' => \Magento\Config\Model\Config\Backend\Encrypted::class,
38  '_elementType' => 'field',
39  ],
40  ],
41  '_elementType' => 'group',
42  ],
43  'group_level_1' => [
44  'id' => 'group_level_1',
45  'type' => 'text',
46  'label' => 'Group Level 1',
47  'children' => [
48  'field_3' => [
49  'id' => 'field_3',
50  'translate' => 'label',
51  'showInWebsite' => '1',
52  'type' => 'text',
53  'label' => 'Field 3',
54  '_elementType' => 'field',
55  ],
56  'group_level_2' => [
57  'id' => 'group_level_2',
58  'type' => 'text',
59  'label' => 'Group Level 2',
60  'children' => [
61  'field_3_1' => [
62  'id' => 'field_3_1',
63  'translate' => 'label',
64  'showInWebsite' => '1',
65  'type' => 'text',
66  'label' => 'Field 3.1',
67  '_elementType' => 'field',
68  ],
69  'group_level_3' => [
70  'id' => 'group_level_3',
71  'type' => 'text',
72  'label' => 'Group Level 3',
73  'children' => [
74  'field_3_1_1' => [
75  'id' => 'field_3_1_1',
76  'translate' => 'label',
77  'showInWebsite' => '1',
78  'backend_model' =>
79  \Magento\Config\Model\Config\Backend\Encrypted::class,
80  'type' => 'text',
81  'label' => 'Field 3.1.1',
82  '_elementType' => 'field',
83  ],
84  ],
85  '_elementType' => 'group',
86  ],
87  ],
88  '_elementType' => 'group',
89  ],
90  ],
91  '_elementType' => 'group',
92  ],
93  ],
94  '_elementType' => 'section',
95  ],
96  'section_2' => [
97  'id' => 'section_2',
98  'type' => 'text',
99  'label' => 'Section 2',
100  'tab' => 'tab_2',
101  'children' => [
102  'group_3' => [
103  'id' => 'group_3',
104  'type' => 'text',
105  'label' => 'Group 3',
106  'comment' => '<a href="test_url">test_link</a>',
107  'children' => [
108  'field_3' => [
109  'id' => 'field_3',
110  'translate' => 'label',
111  'showInWebsite' => '1',
112  'type' => 'text',
113  'label' => 'Field 3',
114  'attribute_0' => [
115  'someArr' => [
116  'someVal' => '1',
117  ],
118  ],
119  'depends' => [
120  'fields' => [
121  'field_4' => [
122  'id' => 'field_4',
123  'value' => 'someValue',
124  '_elementType' => 'field',
125  ],
126  'field_1' => [
127  'id' => 'field_1',
128  'value' => 'someValue',
129  '_elementType' => 'field',
130  ],
131  ],
132  ],
133  '_elementType' => 'field',
134  ],
135  'field_4' => [
136  'id' => 'field_4',
137  'config_path' => 'section/group/field4',
138  'translate' => 'label',
139  'showInWebsite' => '1',
140  'type' => 'text',
141  'label' => 'Field 4',
142  'backend_model' => \Magento\Config\Model\Config\Backend\Encrypted::class,
143  'attribute_1' => 'test_value_1',
144  'attribute_2' => 'test_value_2',
145  'attribute_text' => '<test_value>',
146  'attribute_text_in_array' => [
147  'var' => '<a href="test_url">test_link</a>',
148  'type' => 'someType',
149  ],
150  'depends' => [
151  'fields' => [
152  'field_3' => [
153  'id' => 'field_3',
154  'value' => '0',
155  '_elementType' => 'field',
156  ],
157  ],
158  ],
159  '_elementType' => 'field',
160  ],
161  'field_5' => [
162  'id' => 'field_5',
163  'translate' => 'label',
164  'showInWebsite' => '1',
165  'type' => 'text',
166  'label' => '',
167  '_elementType' => 'field',
168  ],
169  ],
170  '_elementType' => 'group',
171  ],
172  'group_4' => [
173  'id' => 'group_4',
174  'label' => 'Group 4',
175  'type' => 'text',
176  'showInDefault' => 1,
177  'showInStore' => 1,
178  'showInWebsite' => 1,
179  'depends' => [
180  'fields' => [
181  'section_2/group_3/field_5' => [
182  'id' => 'section_2/group_3/field_5',
183  'value' => 1,
184  '_elementType' => 'field',
185  ],
186  ],
187  ],
188  '_elementType' => 'group',
189  ],
190  ],
191  '_elementType' => 'section',
192  ],
193  ],
194  ],
195  ],
196 ];