public function Check::cartReview in Ubercart 8.4
Returns the payment method review details.
Parameters
\Drupal\uc_order\OrderInterface $order: The order that is being processed.
Return value
array
Overrides PaymentMethodPluginBase::cartReview
File
- payment/
uc_payment_pack/ src/ Plugin/ Ubercart/ PaymentMethod/ Check.php, line 99
Class
- Check
- Defines the check payment method.
Namespace
Drupal\uc_payment_pack\Plugin\Ubercart\PaymentMethodCode
public function cartReview(OrderInterface $order) {
$address = Address::create($this->configuration['address']);
$address
->setFirstName($this->configuration['name']);
$review[] = [
'title' => $this
->t('Mail to'),
'data' => [
'#markup' => (string) $address,
],
];
return $review;
}