public function CartPane::review in Ubercart 8.4
Returns the review contents of a checkout pane.
Parameters
\Drupal\uc_order\OrderInterface $order: The order that is being processed.
Return value
array A checkout review array. Each item contains contains "title" and "data" keys which have HTML to be displayed on the checkout review page.
Overrides CheckoutPanePluginInterface::review
File
- uc_cart/
src/ Plugin/ Ubercart/ CheckoutPane/ CartPane.php, line 34
Class
- CartPane
- Displays the cart contents for review during checkout.
Namespace
Drupal\uc_cart\Plugin\Ubercart\CheckoutPaneCode
public function review(OrderInterface $order) {
$review[] = [
'#theme' => 'uc_cart_review_table',
'#items' => $order->products,
'#show_subtotal' => FALSE,
];
return $review;
}