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