You are here

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\Entity

Code

public function getPurchasedEntityId() {
  return $this
    ->get('purchased_entity')->target_id;
}