You are here

function uc_store_address in Ubercart 8.4

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

Returns the user-defined store address.

Return value

\Drupal\uc_store\AddressInterface An Address object.

1 call to uc_store_address()
uc_store_tokens in uc_store/uc_store.tokens.inc
Implements hook_tokens().

File

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

Code

function uc_store_address() {
  $config = \Drupal::config('uc_store.settings');
  $address = Address::create($config
    ->get('address'));
  $address
    ->setCompany($config
    ->get('name'));
  return $address;
}