You are here

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

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

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

Class

MerciLineItem
Defines the Merci Line Item entity.

Namespace

Drupal\merci_line_item\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('user_id', $uid);
  return $this;
}