public function Subscription::setCustomer in Commerce Recurring Framework 8
Sets the customer.
Parameters
\Drupal\user\UserInterface $account: The customer.
Return value
$this
Overrides SubscriptionInterface::setCustomer
File
- src/
Entity/ Subscription.php, line 147
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function setCustomer(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}