You are here

public function SubscriptionTypeInterface::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.

1 method overrides SubscriptionTypeInterface::onSubscriptionRenew()
SubscriptionTypeBase::onSubscriptionRenew in src/Plugin/Commerce/SubscriptionType/SubscriptionTypeBase.php
Acts on a subscription after it has been renewed.

File

src/Plugin/Commerce/SubscriptionType/SubscriptionTypeInterface.php, line 127

Class

SubscriptionTypeInterface
Defines the interface for subscription types.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\SubscriptionType

Code

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