EventListener/ContactLedgerContextSubscriber.php
public function contextCreate(Event $event)
    {
        if (method_exists($event, 'getCampaign')) {
            $this->campaign = $event->getCampaign();
        }
        if (method_exists($event, 'getActor')) {
            $this->actor = $event->getActor();
        }
        if (method_exists($event, 'getActivity')) {
            $this->activity = $event->getActivity();
        }
        if (method_exists($event, 'getMemo')) {
            $this->memo = $event->getMemo();
        }
        if (method_exists($event, 'getLead')) {
            $this->lead = $event->getLead();
        }
    }
public function contextCreate(Event $event)
    {
        if (method_exists($event, 'getCampaign')) {
            $this->campaign = $event->getCampaign();
        }
        if (method_exists($event, 'getActor')) {
            $this->actor = $event->getActor();
        }
        if (method_exists($event, 'getActivity')) {
            $this->activity = $event->getActivity();
        }
        if (method_exists($event, 'getMemo')) {
            $this->memo = $event->getMemo();
        }
        if (method_exists($event, 'getLead')) {
            $this->lead = $event->getLead();
        }
    }
public function contextCreate ( Event $ event ) { if ( method_exists ( $ event , 'getCampaign' ) ) { $ this -> campaign = $ event -> getCampaign ( ) ; } if ( method_exists ( $ event , 'getActor' ) ) { $ this -> actor = $ event -> getActor ( ) ; } if ( method_exists ( $ event , 'getActivity' ) ) { $ this -> activity = $ event -> getActivity ( ) ; } if ( method_exists ( $ event , 'getMemo' ) ) { $ this -> memo = $ event -> getMemo ( ) ; } if ( method_exists ( $ event , 'getLead' ) ) { $ this -> lead = $ event -> getLead ( ) ; } }
This method expects an event comparable with the definition in
\MauticPlugin\MauticContactLedgerBundle\Event\ContactLedgerContextEventInterface
However, to minimize inter-plugin dependencies, any \Symfony\Component\EventDispatcher\Event
is allowed.

@param Event $event
This method expects an event comparable with the definition in \ MauticPlugin \ MauticContactLedgerBundle \ Event \ ContactLedgerContextEventInterface However to minimize inter - plugin dependencies any \ Symfony \ Component \ EventDispatcher \ Event is allowed .