public function Order::setOwner in Ubercart 8.4
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- uc_order/
src/ Entity/ Order.php, line 302
Class
- Order
- Defines the order entity class.
Namespace
Drupal\uc_order\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}