You are here

public function SupportTicket::getRevisionAuthor in Support Ticketing System 8

Gets the support ticket revision author.

Return value

\Drupal\user\UserInterface The user entity for the revision author.

Overrides SupportTicketInterface::getRevisionAuthor

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

Class

SupportTicket
Defines the support ticket entity class.

Namespace

Drupal\support_ticket\Entity

Code

public function getRevisionAuthor() {
  return $this
    ->get('revision_uid')->entity;
}