You are here

public function SupportTicket::getOwnerId in Support Ticketing System 8

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 SupportTicket::getOwnerId()
SupportTicket::preSave in modules/support_ticket/src/Entity/SupportTicket.php
Acts on an entity before the presave hook is invoked.

File

modules/support_ticket/src/Entity/SupportTicket.php, line 233
Contains \Drupal\support_ticket\Entity\SupportTicket.

Class

SupportTicket
Defines the support ticket entity class.

Namespace

Drupal\support_ticket\Entity

Code

public function getOwnerId() {
  return $this
    ->getEntityKey('uid');
}