You are here

protected function ExchangerProviderRemoteBase::importCrossSync in Commerce Exchanger 8

Preform cross conversion between currencies to build exchange data rates.

Return value

array Return array of exchange rates.

1 call to ExchangerProviderRemoteBase::importCrossSync()
ExchangerProviderRemoteBase::buildExchangeRates in src/Plugin/Commerce/ExchangerProvider/ExchangerProviderRemoteBase.php
Process all currencies for rates for other currencies.

File

src/Plugin/Commerce/ExchangerProvider/ExchangerProviderRemoteBase.php, line 107

Class

ExchangerProviderRemoteBase
Base class for Commerce exchanger provider plugins.

Namespace

Drupal\commerce_exchanger\Plugin\Commerce\ExchangerProvider

Code

protected function importCrossSync() {
  $exchange_rates_data = $this
    ->processRemoteData();

  // Based on cross sync settings fetch and process data.
  return $this
    ->crossSyncCalculate($exchange_rates_data);
}