Common/EventListener/AbstractSaleListener.php
public function onStateChange(ResourceEventInterface $event)
    {
        $sale = $this->getSaleFromEvent($event);

        if ($this->persistenceHelper->isScheduledForRemove($sale)) {
            $event->stopPropagation();

            return;
        }

        $this->handleStateChange($sale);
    }
public function onStateChange(ResourceEventInterface $event)
    {
        $sale = $this->getSaleFromEvent($event);

        if ($this->persistenceHelper->isScheduledForRemove($sale)) {
            $event->stopPropagation();

            return;
        }

        $this->handleStateChange($sale);
    }
State change event handler.

@param ResourceEventInterface $event