vendor/bitbag/shipping-export-plugin/src/Menu/ShippingExportMenuBuilder.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file was created by developers working at BitBag
  4.  * Do you need more information about us and what we do? Visit our https://bitbag.io website!
  5.  * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
  6. */
  7. declare(strict_types=1);
  8. namespace BitBag\SyliusShippingExportPlugin\Menu;
  9. use Knp\Menu\ItemInterface;
  10. use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
  11. final class ShippingExportMenuBuilder
  12. {
  13.     public function buildMenu(MenuBuilderEvent $event): void
  14.     {
  15.         $menu $event->getMenu();
  16.         /** @var ItemInterface $salesMenu */
  17.         $salesMenu $menu->getChild('sales');
  18.         $salesMenu->addChild('shipping_exports', ['route' => 'bitbag_admin_shipping_export_index'])
  19.             ->setName('bitbag.ui.export_shipments')
  20.             ->setLabelAttribute('icon''arrow up')
  21.         ;
  22.     }
  23. }