public function PaymentMethodPane::settingsForm in Ubercart 8.4
Returns the settings form for a checkout pane.
Return value
array A form array.
Overrides CheckoutPanePluginBase::settingsForm
File
- payment/
uc_payment/ src/ Plugin/ Ubercart/ CheckoutPane/ PaymentMethodPane.php, line 191
Class
- PaymentMethodPane
- Allows the user to select a payment method and preview the line items.
Namespace
Drupal\uc_payment\Plugin\Ubercart\CheckoutPaneCode
public function settingsForm() {
$form['show_preview'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Show the order total preview on the payment pane.'),
'#default_value' => $this->configuration['show_preview'],
];
return $form;
}