public function OrderRefresh::addPreprocessor in Commerce Core 8.2
Adds an order preprocessor.
Parameters
\Drupal\commerce_order\OrderPreprocessorInterface $processor: The order preprocessor.
Overrides OrderRefreshInterface::addPreprocessor
File
- modules/
order/ src/ OrderRefresh.php, line 83
Class
- OrderRefresh
- Default implementation for order refresh.
Namespace
Drupal\commerce_orderCode
public function addPreprocessor(OrderPreprocessorInterface $processor) {
$this->preprocessors[] = $processor;
}