public function ExchangerCalculatorInterface::priceConversion in Commerce Exchanger 8
Preform currency conversion for prices.
Parameters
\Drupal\commerce_price\Price $price: Price object.
string $target_currency: Target currency.
Return value
\Drupal\commerce_price\Price Return updated price object with new currency.
1 method overrides ExchangerCalculatorInterface::priceConversion()
- AbstractExchangerCalculator::priceConversion in src/
AbstractExchangerCalculator.php - Preform currency conversion for prices.
File
- src/
ExchangerCalculatorInterface.php, line 25
Class
- ExchangerCalculatorInterface
- Provides default price calculator with exchange rates.
Namespace
Drupal\commerce_exchangerCode
public function priceConversion(Price $price, string $target_currency);