Invoice/EventListener/AbstractInvoiceLineListener.php
public function onInsert(ResourceEventInterface $event)
    {
        $line = $this->getInvoiceLineFromEvent($event);

        $this->stockUnitAssigner->assignInvoiceLine($line);

        $this->scheduleInvoiceContentChangeEvent($line->getInvoice());
    }
public function onInsert(ResourceEventInterface $event)
    {
        $line = $this->getInvoiceLineFromEvent($event);

        $this->stockUnitAssigner->assignInvoiceLine($line);

        $this->scheduleInvoiceContentChangeEvent($line->getInvoice());
    }
Insert event handler.

@param ResourceEventInterface $event