You are here

function uc_quote_uc_shipping_type in Ubercart 8.4

Same name and namespace in other branches
  1. 7.3 shipping/uc_quote/uc_quote.module \uc_quote_uc_shipping_type()

Implements hook_uc_shipping_type().

File

shipping/uc_quote/uc_quote.module, line 267
The controller module for fulfillment modules that process physical goods.

Code

function uc_quote_uc_shipping_type() {
  $quote_config = \Drupal::config('uc_quote.settings');
  $weight = $quote_config
    ->get('type_weight');
  $types = [];
  $types['small_package'] = [
    'id' => 'small_package',
    'title' => t('Small package'),
    'weight' => $weight['small_package'],
  ];
  return $types;
}