public function UcWishlist::setOwner in UC Wish List 8
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- src/
Entity/ UcWishlist.php, line 63
Class
- UcWishlist
- Defines the user entity class.
Namespace
Drupal\uc_wishlist\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}