Supplier/EventListener/SupplierOrderListener.php
public function onContentChange(ResourceEventInterface $event)
    {
        $order = $this->getSupplierOrderFromEvent($event);

        $changed = $this->updateState($order);

        $changed |= $this->updateTotals($order);

        if ($changed) {
            $this->persistenceHelper->persistAndRecompute($order);
        }
    }
public function onContentChange(ResourceEventInterface $event)
    {
        $order = $this->getSupplierOrderFromEvent($event);

        $changed = $this->updateState($order);

        $changed |= $this->updateTotals($order);

        if ($changed) {
            $this->persistenceHelper->persistAndRecompute($order);
        }
    }
Content change event handler.

@param ResourceEventInterface $event