You are here

public function Subscription::getCustomer in Commerce Recurring Framework 8

Gets the customer.

Return value

\Drupal\user\UserInterface The customer.

Overrides SubscriptionInterface::getCustomer

File

src/Entity/Subscription.php, line 140

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getCustomer() {
  return $this
    ->get('uid')->entity;
}