public function DeliveryAddressPane::settingsForm in Ubercart 8.4
Returns the settings form for a checkout pane.
Return value
array A form array.
Overrides CheckoutPanePluginBase::settingsForm
File
- uc_cart/
src/ Plugin/ Ubercart/ CheckoutPane/ DeliveryAddressPane.php, line 43
Class
- DeliveryAddressPane
- Gets the user's delivery information.
Namespace
Drupal\uc_cart\Plugin\Ubercart\CheckoutPaneCode
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;
}