You are here

public function SubscriptionTypeBase::onSubscriptionRenew in Commerce Recurring Framework 8

Acts on a subscription after it has been renewed.

Called before the subscription and next recurring order are saved.

Parameters

\Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription: The subscription.

\Drupal\commerce_order\Entity\OrderInterface $order: The recurring order.

\Drupal\commerce_order\Entity\OrderInterface $next_order: The next recurring order.

Overrides SubscriptionTypeInterface::onSubscriptionRenew

File

src/Plugin/Commerce/SubscriptionType/SubscriptionTypeBase.php, line 231

Class

SubscriptionTypeBase
Defines the subscription base class.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\SubscriptionType

Code

public function onSubscriptionRenew(SubscriptionInterface $subscription, OrderInterface $order, OrderInterface $next_order) {
}