You are here

public function SupportTicket::setOwnerId in Support Ticketing System 8

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

1 call to SupportTicket::setOwnerId()
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 240
Contains \Drupal\support_ticket\Entity\SupportTicket.

Class

SupportTicket
Defines the support ticket entity class.

Namespace

Drupal\support_ticket\Entity

Code

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