public function MerciLineItem::setOwner in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- modules/
merci_line_item/ src/ Entity/ MerciLineItem.php, line 175
Class
- MerciLineItem
- Defines the Merci Line Item entity.
Namespace
Drupal\merci_line_item\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}