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_storeCode
protected function __construct() {
$this->defaultCountry = \Drupal::config('uc_store.settings')
->get('address.country');
$this->country = $this->defaultCountry;
}