Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
menu_item_data.php
Go to the documentation of this file.
1 <?php
7 return [
8  'no submenu' => [
9  [
10  'id' => 'item',
11  'title' => 'Item Title',
12  'action' => '/system/config',
13  'resource' => 'Magento_Config::config',
14  'dependsOnModule' => 'Magento_Backend',
15  'dependsOnConfig' => 'system/config/isEnabled',
16  'toolTip' => 'Item tooltip',
17  'sub_menu' => null,
18  ],
19  [
20  'parent_id' => null,
21  'module' => 'Magento_Backend',
22  'sort_index' => null,
23  'dependsOnConfig' => 'system/config/isEnabled',
24  'id' => 'item',
25  'resource' => 'Magento_Config::config',
26  'path' => '',
27  'action' => '/system/config',
28  'dependsOnModule' => 'Magento_Backend',
29  'toolTip' => 'Item tooltip',
30  'title' => 'Item Title',
31  'sub_menu' => null,
32  'target' => null
33  ]
34  ],
35  'with submenu' => [
36  [
37  'parent_id' => '1',
38  'module' => 'Magento_Module1',
39  'sort_index' => '50',
40  'dependsOnConfig' => null,
41  'id' => '5',
42  'resource' => null,
43  'path' => null,
44  'action' => null,
45  'dependsOnModule' => null,
46  'toolTip' => null,
47  'title' => null,
48  'sub_menu' => [
49  'id' => 'item',
50  'title' => 'Item Title',
51  'action' => '/system/config',
52  'resource' => 'Magento_Config::config',
53  'dependsOnModule' => 'Magento_Backend',
54  'dependsOnConfig' => 'system/config/isEnabled',
55  'toolTip' => 'Item tooltip',
56  ],
57  ],
58  [
59  'parent_id' => '1',
60  'module' => 'Magento_Module1',
61  'sort_index' => '50',
62  'dependsOnConfig' => null,
63  'id' => '5',
64  'resource' => null,
65  'path' => null,
66  'action' => null,
67  'dependsOnModule' => null,
68  'toolTip' => '',
69  'title' => null,
70  'sub_menu' => [
71  'id' => 'item',
72  'title' => 'Item Title',
73  'action' => '/system/config',
74  'resource' => 'Magento_Config::config',
75  'dependsOnModule' => 'Magento_Backend',
76  'dependsOnConfig' => 'system/config/isEnabled',
77  'toolTip' => 'Item tooltip',
78  ],
79  'target' => null
80  ]
81  ],
82  'small set of data' => [
83  [
84  'parent_id' => '1',
85  'module' => 'Magento_Module1',
86  'sort_index' => '50',
87  'sub_menu' => [
88  'id' => 'item',
89  'title' => 'Item Title',
90  'action' => '/system/config',
91  'resource' => 'Magento_Config::config',
92  'dependsOnModule' => 'Magento_Backend',
93  'dependsOnConfig' => 'system/config/isEnabled',
94  'toolTip' => 'Item tooltip',
95  ],
96  ],
97  [
98  'parent_id' => '1',
99  'module' => 'Magento_Module1',
100  'sort_index' => '50',
101  'dependsOnConfig' => null,
102  'id' => null,
103  'resource' => null,
104  'path' => '',
105  'action' => null,
106  'dependsOnModule' => null,
107  'toolTip' => '',
108  'title' => null,
109  'sub_menu' => [
110  'id' => 'item',
111  'title' => 'Item Title',
112  'action' => '/system/config',
113  'resource' => 'Magento_Config::config',
114  'dependsOnModule' => 'Magento_Backend',
115  'dependsOnConfig' => 'system/config/isEnabled',
116  'toolTip' => 'Item tooltip',
117  ],
118  'target' => null
119  ]
120  ]
121 ];