By xano on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-2.x
Issue links:
Description:
payment_status_items() has been replaced by the payment_statuses_display renderable element.
D7
$pid = 7;
$payment = entity_load_single('payment', $pid);
$build = array(
'#markup' => payment_status_items($payment),
'#type' => 'markup',
);
D8
$id = 7;
$payment = entity_load('payment', $id);
$build = array(
'#payment' => $payment,
'#type' => 'payment_statuses_display',
);
Impacts:
Module developers