You are here

public function SupportTicket::setRevisionAuthorId in Support Ticketing System 8

Sets the support ticket revision author.

Parameters

int $uid: The user ID of the revision author.

Return value

\Drupal\support_ticket\SupportTicketInterface The called support ticket entity.

Overrides SupportTicketInterface::setRevisionAuthorId

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

Class

SupportTicket
Defines the support ticket entity class.

Namespace

Drupal\support_ticket\Entity

Code

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