You are here

protected function Package::__construct in Ubercart 8.4

Constructor.

File

shipping/uc_fulfillment/src/Package.php, line 426

Class

Package
Defines the Package class.

Namespace

Drupal\uc_fulfillment

Code

protected function __construct() {
  $store_config = \Drupal::config('uc_store.settings');
  $this->weight_units = $store_config
    ->get('weight.units');
  $this->length_units = $store_config
    ->get('length.units');
  $this->currency = $store_config
    ->get('currency.code');
}