You are here

protected function Address::__construct in Ubercart 8.4

Constructor.

For convenience, country defaults to store country.

File

uc_store/src/Address.php, line 27

Class

Address
Defines an object to hold Ubercart mailing address information.

Namespace

Drupal\uc_store

Code

protected function __construct() {
  $this->defaultCountry = \Drupal::config('uc_store.settings')
    ->get('address.country');
  $this->country = $this->defaultCountry;
}