You are here

public function Subscription::getCustomerId in Commerce Recurring Framework 8

Gets the customer ID.

Return value

int The customer ID.

Overrides SubscriptionInterface::getCustomerId

File

src/Entity/Subscription.php, line 155

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getCustomerId() {
  return $this
    ->get('uid')->target_id;
}