trait CurrentCurrencyTrait in Commerce Currency Resolver 8
Trait CurrentCurrencyTrait.
Hierarchy
- trait \Drupal\Tests\commerce_currency_resolver\Traits\CurrentCurrencyTrait
3 files declare their use of CurrentCurrencyTrait
- CurrentCurrencyCartTest.php in tests/
src/ Functional/ CurrentCurrencyCartTest.php - CurrentCurrencyTest.php in tests/
src/ Kernel/ CurrentCurrencyTest.php - ShippingIntegrationTest.php in modules/
shipping/ tests/ src/ FunctionalJavascript/ ShippingIntegrationTest.php
File
- tests/
src/ Traits/ CurrentCurrencyTrait.php, line 8
Namespace
Drupal\Tests\commerce_currency_resolver\TraitsView source
trait CurrentCurrencyTrait {
/**
* Reset current currency container.
*/
protected function resetCurrencyContainer() {
$this->container = $this->container
->get('kernel')
->rebuildContainer();
$this->currentCurrency = $this->container
->get('commerce_currency_resolver.current_currency');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CurrentCurrencyTrait:: |
protected | function | Reset current currency container. |