public static function getSubscribedEvents(): array
{
return [
CountryStateDataPageletLoadedEvent::class => 'onPageletLoaded',
CountryStateDataPageletCriteriaEvent::class => 'onCriteria',
];
}
public function onPageletLoaded(CountryStateDataPageletLoadedEvent $event): void
{
$this->testPagelet = $event->getPagelet();
}
public function onCriteria(CountryStateDataPageletCriteriaEvent $event): void
{
$this->criteriaEvent = $event;
}
}