public function ExchangerImport::run in Commerce Exchanger 8
Force import of all exchange rates.
1 string reference to 'ExchangerImport::run'
File
- src/
Controller/ ExchangerImport.php, line 47
Class
- ExchangerImport
- Class ExchangerImport.
Namespace
Drupal\commerce_exchanger\ControllerCode
public function run() {
$this->importer
->run(TRUE);
$url = Url::fromRoute('entity.commerce_exchange_rates.collection')
->toString();
return new RedirectResponse($url);
}