public function SupportTicket::getOwner in Support Ticketing System 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
1 call to SupportTicket::getOwner()
- 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 218 - Contains \Drupal\support_ticket\Entity\SupportTicket.
Class
- SupportTicket
- Defines the support ticket entity class.
Namespace
Drupal\support_ticket\EntityCode
public function getOwner() {
return $this
->get('uid')->entity;
}