public function SubscriptionEvent::__construct in Commerce Recurring Framework 8
Constructs a new SubscriptionEvent.
Parameters
\Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription: The subscription.
File
- src/
Event/ SubscriptionEvent.php, line 28
Class
- SubscriptionEvent
- Defines the subscription event.
Namespace
Drupal\commerce_recurring\EventCode
public function __construct(SubscriptionInterface $subscription) {
$this->subscription = $subscription;
}