public function DonateOrderProcessor::__construct in Commerce Donate 8
File
- src/
DonateOrderProcessor.php, line 53
Class
- DonateOrderProcessor
- Adjust Currency of Donation when Order Changes currency.
Namespace
Drupal\commerce_donateCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, CurrentCurrency $currency, AccountInterface $account, RouteMatchInterface $route_match) {
$this->orderStorage = $entity_type_manager
->getStorage('commerce_order');
$this->routeMatch = $route_match;
$this->account = $account;
$this->currentCurrency = $currency;
}