Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
dependencies_data.php
Go to the documentation of this file.
1 <?php
7 return [
8  'config' => [
9  'system' => [
10  'sections' => [
11  'section_1' => [
12  'id' => 'section_1',
13  '_elementType' => 'section',
14  'children' => [
15  'group_1' => [
16  'id' => 'group_1',
17  '_elementType' => 'group',
18  'path' => 'section_1',
19  'depends' => [
20  'fields' => [
21  'field_2' => [
22  'id' => '*/*/field_2',
23  'value' => 10,
24  ],
25  ],
26  ],
27  'children' => [
28  'field_2' => [
29  'id' => 'field_2',
30  '_elementType' => 'field',
31  ],
32  ],
33  ],
34  'group_2' => [
35  'id' => 'group_2',
36  '_elementType' => 'group',
37  'children' => [
38  'field_3' => [
39  'id' => 'field_3',
40  '_elementType' => 'field',
41  ],
42  ],
43  ],
44  ],
45  ],
46  'section_2' => [
47  'id' => 'section_2',
48  '_elementType' => 'section',
49  'children' => [
50  'group_3' => [
51  'id' => 'group_3',
52  '_elementType' => 'group',
53  'children' => [
54  'field_3' => [
55  'id' => 'field_3',
56  '_elementType' => 'field',
57  'path' => 'section_2/group_3',
58  'depends' => [
59  'fields' => [
60  'field_4' => [
61  'id' => '*/*/field_4',
62  'value' => 'someValue',
63  ],
64  'field_1' => [
65  'id' => 'section_1/*/field_1',
66  'value' => 'someValue',
67  ],
68  ],
69  ],
70  ],
71  'field_4' => [
72  'id' => 'field_4',
73  '_elementType' => 'field',
74  'path' => 'section_2/group_3',
75  'depends' => [
76  'fields' => [
77  'field_3' => [
78  'id' => '*/*/field_3',
79  'value' => 0,
80  ],
81  ],
82  ],
83  ],
84  'group_4_1' => [
85  'id' => 'group_4_1',
86  '_elementType' => 'group',
87  'path' => 'section_2/group_3',
88  'depends' => [
89  'fields' => [
90  'field_3' => [
91  'id' => '*/*/field_3',
92  'value' => 0,
93  ],
94  ],
95  ],
96  'children' => [
97  'field_5' => [
98  'id' => 'field_5',
99  '_elementType' => 'field',
100  'path' => 'section_2/group_3/group_4_1',
101  'depends' => [
102  'fields' => [
103  'field_4' => [
104  'id' => '*/*/*/field_4',
105  'value' => 'someValue',
106  ],
107  ],
108  ],
109  ],
110  ],
111  ],
112  ],
113  ],
114  ],
115  ],
116  ],
117  ],
118  ],
119 ];