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

Context: How to get an order by its increment id programmatically?

Implementation

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Sales/Model/Order.php#L435-L444

Usages

1. \Magento\Sales\Helper\Guest::loadValidOrder()

2. \Magento\Checkout\Model\Session::getLastRealOrder()

3. \Magento\Authorizenet\Controller\Adminhtml\Authorizenet\Directpost\Payment\Redirect::_returnQuote()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Authorizenet/Controller/Adminhtml/Authorizenet/Directpost/Payment/Redirect.php#L77-L78

4. \Magento\Authorizenet\Controller\Adminhtml\Authorizenet\Directpost\Payment\Redirect::execute()()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Authorizenet/Controller/Adminhtml/Authorizenet/Directpost/Payment/Redirect.php#L107-L109

5. \Magento\Authorizenet\Controller\Adminhtml\Authorizenet\Directpost\Payment\ReturnQuote::_returnQuote()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Authorizenet/Controller/Adminhtml/Authorizenet/Directpost/Payment/ReturnQuote.php#L21-L22

6. \Magento\Authorizenet\Controller\Directpost\Payment::_returnCustomerQuote()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Authorizenet/Controller/Directpost/Payment.php#L129-L130

7. \Magento\Authorizenet\Helper\Backend\Data::getSuccessOrderUrl()

8. \Magento\Authorizenet\Model\Directpost::process()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Authorizenet/Model/Directpost.php#L567-L573

9. \Magento\Paypal\Block\Iframe::_getOrder()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Paypal/Block/Iframe.php#L145-L157

10. \Magento\Paypal\Controller\Hostedpro\Redirect::getOrder()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Paypal/Controller/Hostedpro/Redirect.php#L23-L33

11. \Magento\Paypal\Controller\Payflow\ReturnUrl::execute()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Paypal/Controller/Payflow/ReturnUrl.php#L43-L45

12. \Magento\Paypal\Model\Ipn::_getOrder()

https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Paypal/Model/Ipn.php#L129-L143

13. \Magento\Paypal\Model\Payflowlink::_getOrderFromResponse()

See also: