You are here

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

PriceCalculator

Namespace

Drupal\commerce_order

Code

public function addProcessor(OrderProcessorInterface $processor, $adjustment_type) {
  $this->processors[$adjustment_type][] = $processor;
}