public function ProductBundleItem::getOwner in Commerce Product Bundle 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ ProductBundleItem.php, line 108
Class
- ProductBundleItem
- Defines the product bundle item entity.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function getOwner() {
return $this
->get('uid')->entity;
}