public function PromotionOrderProcessor::__construct in Commerce Core 8.2
Constructs a new PromotionOrderProcessor object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
File
- modules/
promotion/ src/ PromotionOrderProcessor.php, line 39
Class
- PromotionOrderProcessor
- Applies promotions to orders during the order refresh process.
Namespace
Drupal\commerce_promotionCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->languageManager = $language_manager;
}