public function SubscriptionTypeBase::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.
Overrides SubscriptionTypeInterface::onSubscriptionCreate
File
- src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeBase.php, line 211
Class
- SubscriptionTypeBase
- Defines the subscription base class.
Namespace
Drupal\commerce_recurring\Plugin\Commerce\SubscriptionTypeCode
public function onSubscriptionCreate(SubscriptionInterface $subscription, OrderItemInterface $order_item) {
}