public function Subscription::getInitialOrderId in Commerce Recurring Framework 8
Gets the initial order ID.
Return value
int|null The initial order ID, or NULL if not known.
Overrides SubscriptionInterface::getInitialOrderId
File
- src/
Entity/ Subscription.php, line 306
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function getInitialOrderId() {
return $this
->get('initial_order')->target_id;
}