Skip to content

Commit

Permalink
Add icons to admin menu
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszLach2 committed Sep 8, 2023
1 parent d20bbc8 commit 9d5882f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Menu/Admin/AdminMenuListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,28 @@ public function addAdminMenuItems(MenuBuilderEvent $event): void
->addChild('speardevs_sylius_push_notifications_plugin_send_push_notifications', [
'route' => 'speardevs_send_push_notifications',
])
->setLabel('speardevs_sylius_push_notifications_plugin.ui.send_push_notification');
->setLabel('speardevs_sylius_push_notifications_plugin.ui.send_push_notification')
->setLabelAttribute('icon', 'bell');

$newSubmenu
->addChild('speardevs_sylius_push_notifications_plugin_admin_push_notification_template_index', [
'route' => 'speardevs_sylius_push_notifications_plugin_admin_push_notification_template_index',
])
->setLabel('speardevs_sylius_push_notifications_plugin.ui.push_notification_templates');
->setLabel('speardevs_sylius_push_notifications_plugin.ui.push_notification_templates')
->setLabelAttribute('icon', 'file code');

$newSubmenu
->addChild('speardevs_sylius_push_notifications_plugin_admin_push_notification_history_index', [
'route' => 'speardevs_sylius_push_notifications_plugin_admin_push_notification_history_index',
])
->setLabel('speardevs_sylius_push_notifications_plugin.ui.push_notification_histories');
->setLabel('speardevs_sylius_push_notifications_plugin.ui.push_notification_histories')
->setLabelAttribute('icon', 'history');

$newSubmenu
->addChild('speardevs_sylius_push_notifications_plugin_admin_push_notification_configuration_index', [
'route' => 'speardevs_sylius_push_notifications_plugin_admin_push_notification_configuration_index',
])
->setLabel('speardevs_sylius_push_notifications_plugin.ui.push_notification_configurations');
->setLabel('speardevs_sylius_push_notifications_plugin.ui.push_notification_configurations')
->setLabelAttribute('icon', 'cog');
}
}

0 comments on commit 9d5882f

Please sign in to comment.