You are here

public function PriceCalculator::getProcessors in Commerce Core 8.2

Gets all order processors for the given adjustment type.

Parameters

string $adjustment_type: The adjustment type.

Return value

\Drupal\commerce_order\OrderProcessorInterface[] The order processors.

Overrides PriceCalculatorInterface::getProcessors

1 call to PriceCalculator::getProcessors()
PriceCalculator::calculate in modules/order/src/PriceCalculator.php
Calculates a purchasable entity's price.

File

modules/order/src/PriceCalculator.php, line 95

Class

PriceCalculator

Namespace

Drupal\commerce_order

Code

public function getProcessors($adjustment_type) {
  if (!isset($this->processors[$adjustment_type])) {
    return [];
  }
  return $this->processors[$adjustment_type];
}