You are here

public function PriceCalculatorInterface::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.

1 method overrides PriceCalculatorInterface::addProcessor()
PriceCalculator::addProcessor in modules/order/src/PriceCalculator.php
Adds an order processor for the given adjustment type.

File

modules/order/src/PriceCalculatorInterface.php, line 26

Class

PriceCalculatorInterface
Calculates the price a purchasable entity would have if it was in an order.

Namespace

Drupal\commerce_order

Code

public function addProcessor(OrderProcessorInterface $processor, $adjustment_type);