You are here

interface LocaleResolverInterface in Currency 8.3

Defines a locale resolver.

Hierarchy

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

... See full list

File

src/LocaleResolverInterface.php, line 10

Namespace

Drupal\currency
View 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