You are here

public function MerciLineItem::getOwner in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

modules/merci_line_item/src/Entity/MerciLineItem.php, line 153

Class

MerciLineItem
Defines the Merci Line Item entity.

Namespace

Drupal\merci_line_item\Entity

Code

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