interface LocaleResolverInterface in Currency 8.3
Defines a locale resolver.
Hierarchy
- interface \Drupal\currency\LocaleResolverInterface
Expanded class hierarchy of LocaleResolverInterface
All classes that implement LocaleResolverInterface
7 files declare their use of LocaleResolverInterface
- Basic.php in src/
Plugin/ Currency/ AmountFormatter/ Basic.php - BasicTest.php in tests/
src/ Unit/ Plugin/ Currency/ AmountFormatter/ BasicTest.php - CurrencyLocaleAccessControlHandler.php in src/
Entity/ CurrencyLocale/ CurrencyLocaleAccessControlHandler.php - CurrencyLocaleAccessControlHandlerTest.php in tests/
src/ Unit/ Entity/ CurrencyLocale/ CurrencyLocaleAccessControlHandlerTest.php - Intl.php in modules/
currency_intl/ src/ Plugin/ Currency/ AmountFormatter/ Intl.php
File
- src/
LocaleResolverInterface.php, line 10
Namespace
Drupal\currencyView source
interface LocaleResolverInterface {
/**
* The default locale.
*/
const DEFAULT_LOCALE = 'en_US';
/**
* Loads the locale to use.
*
* @param string $language_type
* One of the \Drupal\Core\Language\LanguageInterface\TYPE_* constants.
*
* @throws \RuntimeException
*
* @return \Drupal\currency\Entity\CurrencyLocaleInterface
*/
public function resolveCurrencyLocale($language_type = LanguageInterface::TYPE_CONTENT);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LocaleResolverInterface:: |
constant | The default locale. | ||
LocaleResolverInterface:: |
public | function | Loads the locale to use. | 1 |