public function OrderRefresh::__construct in Commerce Core 8.2
Constructs a new OrderRefresh object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\commerce_price\Resolver\ChainPriceResolverInterface $chain_price_resolver: The chain price resolver.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Component\Datetime\TimeInterface $time: The time.
File
- modules/
order/ src/ OrderRefresh.php, line 73
Class
- OrderRefresh
- Default implementation for order refresh.
Namespace
Drupal\commerce_orderCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ChainPriceResolverInterface $chain_price_resolver, AccountInterface $current_user, TimeInterface $time) {
$this->orderTypeStorage = $entity_type_manager
->getStorage('commerce_order_type');
$this->chainPriceResolver = $chain_price_resolver;
$this->currentUser = $current_user;
$this->time = $time;
}