You are here

public function PriceListItem::getOwner in Commerce Pricelist 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/PriceListItem.php, line 194

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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