You are here

trait CurrentCurrencyTrait in Commerce Currency Resolver 8

Trait CurrentCurrencyTrait.

Hierarchy

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\Traits
View 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

Namesort descending Modifiers Type Description Overrides
CurrentCurrencyTrait::resetCurrencyContainer protected function Reset current currency container.