public function SubscriptionTypeInterface::collectCharges in Commerce Recurring Framework 8
Collects charges for a subscription's billing period.
Parameters
\Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription: The subscription.
\Drupal\commerce_recurring\BillingPeriod $billing_period: The billing period.
Return value
\Drupal\commerce_recurring\Charge[] The charges.
1 method overrides SubscriptionTypeInterface::collectCharges()
- SubscriptionTypeBase::collectCharges in src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeBase.php - Collects charges for a subscription's billing period.
File
- src/
Plugin/ Commerce/ SubscriptionType/ SubscriptionTypeInterface.php, line 64
Class
- SubscriptionTypeInterface
- Defines the interface for subscription types.
Namespace
Drupal\commerce_recurring\Plugin\Commerce\SubscriptionTypeCode
public function collectCharges(SubscriptionInterface $subscription, BillingPeriod $billing_period);