DeliveryAddressPane.php in Ubercart 8.4
File
uc_cart/src/Plugin/Ubercart/CheckoutPane/DeliveryAddressPane.php
View source
<?php
namespace Drupal\uc_cart\Plugin\Ubercart\CheckoutPane;
class DeliveryAddressPane extends AddressPaneBase {
protected function getDescription() {
return $this
->t('Enter your delivery address and information here.');
}
protected function getCopyAddressText() {
return $this
->t('My delivery information is the same as my billing information.');
}
public function defaultConfiguration() {
return [
'delivery_not_shippable' => TRUE,
];
}
public function settingsForm() {
$form['delivery_not_shippable'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Hide delivery information when carts have no shippable items.'),
'#default_value' => $this->configuration['delivery_not_shippable'],
];
return $form;
}
}