public function PriceCalculator::addProcessor in Commerce Core 8.2
Adds an order processor for the given adjustment type.
Parameters
\Drupal\commerce_order\OrderProcessorInterface $processor: The order processor.
string $adjustment_type: The adjustment type.
Overrides PriceCalculatorInterface::addProcessor
File
- modules/
order/ src/ PriceCalculator.php, line 88
Class
Namespace
Drupal\commerce_orderCode
public function addProcessor(OrderProcessorInterface $processor, $adjustment_type) {
$this->processors[$adjustment_type][] = $processor;
}