public function PaymentListBuilder::render in Commerce Core 8.2
Make the payment list page themeable. Add total_paid and order_balance elements.
Overrides EntityListBuilder::render
File
- modules/
payment/ src/ PaymentListBuilder.php, line 204
Class
- PaymentListBuilder
- Defines the list builder for payments.
Namespace
Drupal\commerce_paymentCode
public function render() {
$build = parent::render();
$build['payment_total_summary'] = [
'#theme' => 'commerce_payment_total_summary',
'#order_entity' => $this->order,
];
return $build;
}