You are here

public function ProductBundle::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/ProductBundle.php, line 119

Class

ProductBundle
Defines the product bundle entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function getOwner() {
  return $this
    ->get('uid')->entity;
}