public function SubscriptionTypeInterface::onSubscriptionCreate in Commerce Recurring Framework 8
Acts on a subscription after it has been created from an order item.
Called before the subscription is saved.
Parameters
\Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription: The subscription.
\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The order item.
1 method overrides SubscriptionTypeInterface::onSubscriptionCreate()
- SubscriptionTypeBase::onSubscriptionCreate in src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeBase.php - Acts on a subscription after it has been created from an order item.
File
- src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeInterface.php, line 76
Class
- SubscriptionTypeInterface
- Defines the interface for subscription types.
Namespace
Drupal\commerce_recurring\Plugin\Commerce\SubscriptionTypeCode
public function onSubscriptionCreate(SubscriptionInterface $subscription, OrderItemInterface $order_item);