public function Order::setCustomer in Commerce Core 8.2
Sets the customer user.
Parameters
\Drupal\user\UserInterface $account: The customer user entity.
Return value
$this
Overrides OrderInterface::setCustomer
File
- modules/
order/ src/ Entity/ Order.php, line 175
Class
- Order
- Defines the order entity class.
Namespace
Drupal\commerce_order\EntityCode
public function setCustomer(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}