public function Total::display in Ubercart 8.4
File
- uc_order/
src/ Plugin/ Ubercart/ LineItem/ Total.php, line 23
Class
- Total
- Handles the total line item.
Namespace
Drupal\uc_order\Plugin\Ubercart\LineItemCode
public function display(OrderInterface $order) {
$lines[] = [
'id' => 'total',
'title' => $this
->t('Order total'),
'amount' => $order
->getTotal(),
];
return $lines;
}