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