You are here

function uc_store_default_country in Ubercart 8.4

Same name and namespace in other branches
  1. 5 uc_store/uc_store.module \uc_store_default_country()
  2. 6.2 uc_store/uc_store.module \uc_store_default_country()
  3. 7.3 uc_store/uc_store.module \uc_store_default_country()

Returns a default store country value.

Return value

string The two character country code representing the store default.

1 call to uc_store_default_country()
uc_cart_pane_quotes in shipping/uc_quote/uc_quote.module
Cart pane callback.

File

uc_store/uc_store.module, line 734
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_default_country() {
  return \Drupal::config('uc_store.settings')
    ->get('address.country');
}