Conditions | 1 |
Paths | 1 |
Total Lines | 41 |
Code Lines | 25 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function buildMenu(MenuBuilderEvent $menuBuilderEvent): void |
||
26 | { |
||
27 | $menu = $menuBuilderEvent->getMenu(); |
||
28 | |||
29 | $cmsRootMenuItem = $menu |
||
30 | ->addChild('bitbag_cms') |
||
31 | ->setLabel('bitbag.ui.cms') |
||
32 | ; |
||
33 | |||
34 | $cmsRootMenuItem |
||
35 | ->addChild('blocks', [ |
||
36 | 'route' => 'bitbag_sylius_cms_plugin_admin_block_index' |
||
37 | ]) |
||
38 | ->setLabel('bitbag.ui.blocks') |
||
39 | ->setLabelAttribute('icon', 'block layout') |
||
40 | ; |
||
41 | |||
42 | $cmsRootMenuItem |
||
43 | ->addChild('pages', [ |
||
44 | 'route' => 'bitbag_sylius_cms_plugin_admin_page_index' |
||
45 | ]) |
||
46 | ->setLabel('bitbag.ui.pages') |
||
47 | ->setLabelAttribute('icon', 'sticky note') |
||
48 | ; |
||
49 | |||
50 | $cmsRootMenuItem |
||
51 | ->addChild('faq', [ |
||
52 | 'route' => 'bitbag_sylius_cms_plugin_admin_frequently_asked_question_index' |
||
53 | ]) |
||
54 | ->setLabel('bitbag.ui.faq') |
||
55 | ->setLabelAttribute('icon', 'help') |
||
56 | ; |
||
57 | |||
58 | $cmsRootMenuItem |
||
59 | ->addChild('sections', [ |
||
60 | 'route' => 'bitbag_sylius_cms_plugin_admin_section_index' |
||
61 | ]) |
||
62 | ->setLabel('bitbag.ui.sections') |
||
63 | ->setLabelAttribute('icon', 'grid layout') |
||
64 | ; |
||
65 | } |
||
66 | } |
||
67 |