public function SubscriptionTypeInterface::onSubscriptionTrialStart in Commerce Recurring Framework 8
Acts on a subscription after a trial has been started.
Called before the subscription and trial recurring order are saved.
Parameters
\Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription: The subscription.
\Drupal\commerce_order\Entity\OrderInterface $order: The trial recurring order.
1 method overrides SubscriptionTypeInterface::onSubscriptionTrialStart()
- SubscriptionTypeBase::onSubscriptionTrialStart in src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeBase.php - Acts on a subscription after a trial has been started.
File
- src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeInterface.php, line 88
Class
- SubscriptionTypeInterface
- Defines the interface for subscription types.
Namespace
Drupal\commerce_recurring\Plugin\Commerce\SubscriptionTypeCode
public function onSubscriptionTrialStart(SubscriptionInterface $subscription, OrderInterface $order);