custom/plugins/KmDocuments/src/Subscriber/DeliveryNoteRenderSubscriber.php line 19

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace KmDocuments\Subscriber;
  3. use Shopware\Core\Checkout\Document\Event\DeliveryNoteOrdersEvent;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Event\EntityLoadedEvent;
  5. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  6. class DeliveryNoteRenderSubscriber implements EventSubscriberInterface
  7. {
  8.     public static function getSubscribedEvents(): array
  9.     {
  10.         return [
  11.             DeliveryNoteOrdersEvent::class => 'onDeliveryNoteOrderLoaded'
  12.         ];
  13.     }
  14.     public function onDeliveryNoteOrderLoaded(EntityLoadedEvent $event)
  15.     {
  16.         /**/
  17.     }
  18. }