class CurrentCurrencyTest in Commerce Currency Resolver 8
Same name in this branch
- 8 tests/src/Kernel/CurrentCurrencyTest.php \Drupal\Tests\commerce_currency_resolver\Kernel\CurrentCurrencyTest
- 8 tests/modules/commerce_currency_resolver_test/src/CurrentCurrencyTest.php \Drupal\commerce_currency_resolver_test\CurrentCurrencyTest
Holds a reference to the currency, resolved on demand.
Hierarchy
- class \Drupal\commerce_currency_resolver\CurrentCurrency implements CurrentCurrencyInterface
- class \Drupal\commerce_currency_resolver_test\CurrentCurrencyTest
Expanded class hierarchy of CurrentCurrencyTest
File
- tests/
modules/ commerce_currency_resolver_test/ src/ CurrentCurrencyTest.php, line 10
Namespace
Drupal\commerce_currency_resolver_testView source
class CurrentCurrencyTest extends CurrentCurrency {
/**
* {@inheritdoc}
*/
public function getCurrency() {
return 'VUV';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CurrentCurrency:: |
protected | property | Static cache of resolved currency. One per request. | |
CurrentCurrency:: |
protected | property | Helper service. | |
CurrentCurrency:: |
protected | property | The request stack. | |
CurrentCurrency:: |
public | function | ||
CurrentCurrencyTest:: |
public | function |
Gets the resolved currency for the current request. Overrides CurrentCurrency:: |