interface CurrencyHelperInterface in Commerce Currency Resolver 8
Interface CurrencyHelperInterface.
@package Drupal\commerce_currency_resolver
Hierarchy
- interface \Drupal\commerce_currency_resolver\CurrencyHelperInterface
Expanded class hierarchy of CurrencyHelperInterface
All classes that implement CurrencyHelperInterface
3 files declare their use of CurrencyHelperInterface
File
- src/
CurrencyHelperInterface.php, line 10
Namespace
Drupal\commerce_currency_resolverView source
interface CurrencyHelperInterface {
/**
* Return formatted array of available exchange rates plugins.
*
* @return array
* List of keyed providers ['provider_id' => 'Provider name'].
*/
public function getExchangeRatesProviders();
/**
* Return formatted array of available currencies.
*
* @return array
* List of keyed currencies ['HRK' => 'Croatian Kuna'].
*/
public function getCurrencies();
/**
* Return formatted array of languages.
*
* @return array
* List of keyed languages ['HR' => 'Croatian'].
*/
public function getLanguages();
/**
* Return current user language.
*
* @return string
* Two letter language code.
*/
public function currentLanguage();
/**
* Get list of enabled geo modules if any.
*
* @return array
* List of geo modules.
*/
public function getGeoModules();
/**
* Get user country location from contrib modules.
*
* @return mixed
* Return 2 letter country code.
*/
public function getUserCountry();
/**
* Get how currency is mapped in the system. By country, language, cookie.
*
* @return string
* Return mapping type.
*
* @see commerce_currency_resolver.settings
*/
public function getSourceType();
/**
* Get how currency is mapped in the system. By country, language, cookie.
*
* @return array
* Return mapping type.
*
* @see commerce_currency_resolver.settings
*/
public function getMappingMatrix();
/**
* Return if domicile currency is used.
*
* @return mixed
* Return if is active.
*/
public function getDomicileCurrency();
/**
* Get default currency from current resolved store.
*
* @return string
* Return currency code.
*/
public function defaultCurrencyCode();
/**
* Return default fallback currency from settings.
*
* @return string
* Return currency code.
*/
public function fallbackCurrencyCode();
/**
* Get cookie name.
*
* @return string
* Return cookie name.
*/
public function getCookieName();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CurrencyHelperInterface:: |
public | function | Return current user language. | 1 |
CurrencyHelperInterface:: |
public | function | Get default currency from current resolved store. | 1 |
CurrencyHelperInterface:: |
public | function | Return default fallback currency from settings. | 1 |
CurrencyHelperInterface:: |
public | function | Get cookie name. | 1 |
CurrencyHelperInterface:: |
public | function | Return formatted array of available currencies. | 1 |
CurrencyHelperInterface:: |
public | function | Return if domicile currency is used. | 1 |
CurrencyHelperInterface:: |
public | function | Return formatted array of available exchange rates plugins. | 1 |
CurrencyHelperInterface:: |
public | function | Get list of enabled geo modules if any. | 1 |
CurrencyHelperInterface:: |
public | function | Return formatted array of languages. | 1 |
CurrencyHelperInterface:: |
public | function | Get how currency is mapped in the system. By country, language, cookie. | 1 |
CurrencyHelperInterface:: |
public | function | Get how currency is mapped in the system. By country, language, cookie. | 1 |
CurrencyHelperInterface:: |
public | function | Get user country location from contrib modules. | 1 |