function uc_payment_uc_order_load in Ubercart 8.4
Implements hook_uc_order_load().
File
- payment/
uc_payment/ uc_payment.module, line 209 - Defines the payment API that lets payment modules interact with Ubercart.
Code
function uc_payment_uc_order_load($orders) {
foreach ($orders as $order) {
if ($order
->getPaymentMethodId()) {
\Drupal::service('plugin.manager.uc_payment.method')
->createFromOrder($order)
->orderLoad($order);
}
}
}