BillingAddressPane.php in Ubercart 8.4
File
uc_cart/src/Plugin/Ubercart/CheckoutPane/BillingAddressPane.php
View source
<?php
namespace Drupal\uc_cart\Plugin\Ubercart\CheckoutPane;
class BillingAddressPane extends AddressPaneBase {
protected function getDescription() {
return $this
->t('Enter your billing address and information here.');
}
protected function getCopyAddressText() {
return $this
->t('My billing information is the same as my delivery information.');
}
public function defaultConfiguration() {
return [
'default_same_address' => FALSE,
];
}
public function settingsForm() {
$form['default_same_address'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Use the same address for billing and delivery by default.'),
'#default_value' => $this->configuration['default_same_address'],
];
return $form;
}
}