public function MerciLineItem::getOwnerId in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2
Returns the entity owner's user ID.
Return value
int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.
Overrides EntityOwnerInterface::getOwnerId
1 call to MerciLineItem::getOwnerId()
- MerciLineItem::preSave in modules/
merci_line_item/ src/ Entity/ MerciLineItem.php - Acts on an entity before the presave hook is invoked.
File
- modules/
merci_line_item/ src/ Entity/ MerciLineItem.php, line 160
Class
- MerciLineItem
- Defines the Merci Line Item entity.
Namespace
Drupal\merci_line_item\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}