public function CustomerInfoPane::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/ CustomerInfoPane.php, line 170
Class
- CustomerInfoPane
- Gets the user's email address for login.
Namespace
Drupal\uc_cart\Plugin\Ubercart\CheckoutPaneCode
public function review(OrderInterface $order) {
$review[] = [
'title' => $this
->t('E-mail'),
'data' => [
'#plain_text' => $order
->getEmail(),
],
];
return $review;
}