public function SubscriptionInterface::cancel in Commerce Recurring Framework 8
Cancel the subscription.
Parameters
bool $schedule: Whether to schedule the cancellation.
Return value
$this
1 method overrides SubscriptionInterface::cancel()
- Subscription::cancel in src/
Entity/ Subscription.php - Cancel the subscription.
File
- src/
Entity/ SubscriptionInterface.php, line 583
Class
- SubscriptionInterface
- Defines the interface for subscriptions.
Namespace
Drupal\commerce_recurring\EntityCode
public function cancel($schedule = TRUE);