src/Menu/AdminMenuListener.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Menu;
  3. use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
  4. use Symfony\Contracts\Translation\TranslatorInterface;
  5. final class AdminMenuListener
  6. {
  7. public function addAdminMenuItems(MenuBuilderEvent $event): void
  8. {
  9. $menu = $event->getMenu();
  10. $customerssubmenu = $menu->getChild("sales");
  11. $customerssubmenu
  12. ->addChild('new-licencessubitem', ['route' => 'app_admin_licencefile_index'])
  13. ->setLabel("app.ui.licences")
  14. ->setLabelAttribute('icon', 'key');
  15. }
  16. }