public function RecurringOrderManagerInterface::startRecurring in Commerce Recurring Framework 8
Starts the recurring process for the given subscription.
Creates a recurring order covering the first billing period. The order will be closed and renewed once the billing period is over.
Parameters
\Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription: The active subscription.
Return value
\Drupal\commerce_order\Entity\OrderInterface The recurring order.
Throws
\InvalidArgumentException Thrown if subscription state is not "active".
1 method overrides RecurringOrderManagerInterface::startRecurring()
- RecurringOrderManager::startRecurring in src/
RecurringOrderManager.php - Starts the recurring process for the given subscription.
File
- src/
RecurringOrderManagerInterface.php, line 60
Class
- RecurringOrderManagerInterface
- Manages recurring orders.
Namespace
Drupal\commerce_recurringCode
public function startRecurring(SubscriptionInterface $subscription);