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\EntityCode
public function getCustomer() {
return $this
->get('uid')->entity;
}