How is \Magento\Checkout\Model\Session::getLastRealOrder() implemented and used?

Context:

Implementation

Details: How is \Magento\Sales\Model\Order::loadByIncrementId() implemented and used?

Usages

1. \Magento\Checkout\Block\Registration::getEmailAddress()

2. \Magento\Checkout\Block\Onepage\Success::prepareBlockData()

3. \Magento\Checkout\Model\Session::restoreQuote()

Details: How is \Magento\Checkout\Model\Session::restoreQuote() implemented and used?

4. \Magento\Downloadable\Block\Checkout\Success::orderHasDownloadableProducts()

5. \Magento\Paypal\Helper\Checkout::cancelCurrentOrder()

Details: How is \Magento\Paypal\Helper\Checkout::cancelCurrentOrder() implemented and used?

See also: