vendor/store.shopware.com/dreiscset/src/Subscriber/ProductEvents/ProductLoadedSubscriber.php line 24

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace DreiscSet\Subscriber\ProductEvents;
  3. use Shopware\Core\Content\Product\ProductEvents;
  4. use Shopware\Core\System\SalesChannel\Entity\SalesChannelEntityLoadedEvent;
  5. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  6. class ProductLoadedSubscriber implements EventSubscriberInterface
  7. {
  8.     /**
  9.      * @return array|void
  10.      */
  11.     public static function getSubscribedEvents()
  12.     {
  13.         return [
  14.             'sales_channel.' ProductEvents::PRODUCT_LOADED_EVENT => 'onSalesChannelProductLoaded'
  15.         ];
  16.     }
  17.     /**
  18.      * @param SalesChannelEntityLoadedEvent $salesChannelEntityLoadedEvent
  19.      */
  20.     public function onSalesChannelProductLoaded(SalesChannelEntityLoadedEvent $salesChannelEntityLoadedEvent): void
  21.     {
  22.     }
  23. }