1

If you see the top of the class for /vendor/magento/module-sales/Model/Order/Invoice.php, you can see the following code: /** * @var string */ protected $_eventObject = 'invoice'; Now you can able to get the value in the observer by $invoice = $observer->getEvent()->getInvoice(); You have $invoice object, you can get the order from that. Like: $...


Only top voted, non community-wiki answers of a minimum length are eligible