custom/plugins/CoeAccountOrtPlzSw6/src/Subscriber/CountrySubscriber.php line 21

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace CoeAccountOrtPlzSw6\Subscriber;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Event\EntityLoadedEvent;
  4. use Shopware\Core\System\Country\CountryEvents;
  5. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  6. Class CountrySubscriber implements EventSubscriberInterface {
  7.     public function __construct() {
  8.     }
  9.     public static function getSubscribedEvents() {
  10.         return [
  11.             CountryEvents::COUNTRY_LOADED_EVENT => "onCountryLoaded"
  12.         ];
  13.     }
  14.     public function onCountryLoaded(EntityLoadedEvent $event){
  15.        // dd($event);
  16.     }
  17. }