You are here

public function CurrencyHelper::getCookieName in Commerce Currency Resolver 8

Get cookie name.

Return value

string Return cookie name.

Overrides CurrencyHelperInterface::getCookieName

File

src/CurrencyHelper.php, line 234

Class

CurrencyHelper
Helper for various parts of the module.

Namespace

Drupal\commerce_currency_resolver

Code

public function getCookieName() {
  $cookieName =& drupal_static(__FUNCTION__);
  if (!isset($cookieName)) {
    $cookieName = Settings::get('commerce_currency_cookie') ?? 'commerce_currency';
  }
  return $cookieName;
}