You are here

public function ExchangerImport::run in Commerce Exchanger 8

Force import of all exchange rates.

1 string reference to 'ExchangerImport::run'
commerce_exchanger.routing.yml in ./commerce_exchanger.routing.yml
commerce_exchanger.routing.yml

File

src/Controller/ExchangerImport.php, line 47

Class

ExchangerImport
Class ExchangerImport.

Namespace

Drupal\commerce_exchanger\Controller

Code

public function run() {
  $this->importer
    ->run(TRUE);
  $url = Url::fromRoute('entity.commerce_exchange_rates.collection')
    ->toString();
  return new RedirectResponse($url);
}