public function RecurringOrderProcessor::process in Commerce Recurring Framework 8
Processes an order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
Overrides OrderProcessorInterface::process
File
- src/
RecurringOrderProcessor.php, line 33
Class
- RecurringOrderProcessor
- Refreshes draft recurring orders.
Namespace
Drupal\commerce_recurringCode
public function process(OrderInterface $order) {
if ($order
->bundle() == 'recurring') {
$this->recurringOrderManager
->refreshOrder($order);
}
}